From: Bharat Bhushan Date: Thu, 3 Apr 2014 21:50:04 +0000 (-0700) Subject: drivers/rtc/rtc-ds3232.c: make it possible to share an irq X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a8a15eb19d885bec172c396178c148264987922f;p=linux-beck.git drivers/rtc/rtc-ds3232.c: make it possible to share an irq It's possible to have RTC irq shared with other device (e.g. t4240qds board shares ds3232irq with phy one). Handle this in driver. Signed-off-by: Bharat Bhushan Cc: Scott Wood Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index 15497c578af5..813c6aa70d3d 100644 --- a/drivers/rtc/rtc-ds3232.c +++ b/drivers/rtc/rtc-ds3232.c @@ -418,8 +418,8 @@ static int ds3232_probe(struct i2c_client *client, } if (client->irq >= 0) { - ret = devm_request_irq(&client->dev, client->irq, ds3232_irq, 0, - "ds3232", client); + ret = devm_request_irq(&client->dev, client->irq, ds3232_irq, + IRQF_SHARED, "ds3232", client); if (ret) { dev_err(&client->dev, "unable to request IRQ\n"); }