Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anthony Olech and committed by
Linus Torvalds
c2c0eed7 7b8dc3eb

+1 -3
+1 -3
drivers/rtc/rtc-da9052.c
··· 26 26 struct da9052_rtc { 27 27 struct rtc_device *rtc; 28 28 struct da9052 *da9052; 29 - int irq; 30 29 }; 31 30 32 31 static int da9052_rtc_enable_alarm(struct da9052 *da9052, bool enable) ··· 239 240 240 241 rtc->da9052 = dev_get_drvdata(pdev->dev.parent); 241 242 platform_set_drvdata(pdev, rtc); 242 - rtc->irq = DA9052_IRQ_ALARM; 243 - ret = da9052_request_irq(rtc->da9052, rtc->irq, "ALM", 243 + ret = da9052_request_irq(rtc->da9052, DA9052_IRQ_ALARM, "ALM", 244 244 da9052_rtc_irq, rtc); 245 245 if (ret != 0) { 246 246 rtc_err(rtc->da9052, "irq registration failed: %d\n", ret);