summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAnthony Olech <anthony.olech.opensource@diasemi.com>2014-04-03 23:49:52 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-04 01:21:19 +0200
commitc2c0eed7f20cbfb20b346f1854afaf485bc6c207 (patch)
treed866d8926d05bf69ea28ef6be2f842693b2a13e6 /drivers/rtc
parentdrivers/rtc/rtc-isl12057.c: remove duplicate include (diff)
downloadlinux-c2c0eed7f20cbfb20b346f1854afaf485bc6c207.tar.xz
linux-c2c0eed7f20cbfb20b346f1854afaf485bc6c207.zip
drivers/rtc/rtc-da9052.c: remove redundant private structure field
Remove redundant irq field in private rtc structure. Signed-off-by: Anthony Olech <anthony.olech.opensource@diasemi.com> Acked-by: David Dajun Chen <david.chen@diasemi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-da9052.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c
index 4385ca4503da..a1cbf64242a5 100644
--- a/drivers/rtc/rtc-da9052.c
+++ b/drivers/rtc/rtc-da9052.c
@@ -26,7 +26,6 @@
struct da9052_rtc {
struct rtc_device *rtc;
struct da9052 *da9052;
- int irq;
};
static int da9052_rtc_enable_alarm(struct da9052 *da9052, bool enable)
@@ -240,8 +239,7 @@ static int da9052_rtc_probe(struct platform_device *pdev)
rtc->da9052 = dev_get_drvdata(pdev->dev.parent);
platform_set_drvdata(pdev, rtc);
- rtc->irq = DA9052_IRQ_ALARM;
- ret = da9052_request_irq(rtc->da9052, rtc->irq, "ALM",
+ ret = da9052_request_irq(rtc->da9052, DA9052_IRQ_ALARM, "ALM",
da9052_rtc_irq, rtc);
if (ret != 0) {
rtc_err(rtc->da9052, "irq registration failed: %d\n", ret);