Skip to content

Commit

Permalink
drivers/rtc/rtc-da9052.c: remove redundant private structure field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anthony Olech authored and Linus Torvalds committed Apr 3, 2014
1 parent 7b8dc3e commit c2c0eed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/rtc/rtc-da9052.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c2c0eed

Please sign in to comment.