]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
rtc: ds1307 make it possible to share an irq
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Wed, 16 Dec 2009 00:46:14 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:00 +0000 (07:20 -0800)
It's possible to have RTC irq shared with other device (e.g.
mpc8349e-mitx board shares ds1339 irq with phy one).  Handle this in
driver.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1307.c

index eb99ee4fa0f5778a39e4faddd892766b06d0f078..8a99da6f2f2439fba20b9e6bd3772dafc639eedd 100644 (file)
@@ -874,7 +874,7 @@ read_rtc:
        }
 
        if (want_irq) {
-               err = request_irq(client->irq, ds1307_irq, 0,
+               err = request_irq(client->irq, ds1307_irq, IRQF_SHARED,
                          ds1307->rtc->name, client);
                if (err) {
                        dev_err(&client->dev,