Skip to content

Commit

Permalink
Blackfin RTC Driver: do all initialization before we register the rtc…
Browse files Browse the repository at this point in the history
… and make it available

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Mike Frysinger authored and torvalds committed Aug 20, 2008
1 parent fe2e1cf commit 8c9166f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/rtc/rtc-bfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ static int __devinit bfin_rtc_probe(struct platform_device *pdev)
if (unlikely(!rtc))
return -ENOMEM;
platform_set_drvdata(pdev, rtc);
device_init_wakeup(dev, 1);

/* Grab the IRQ and init the hardware */
ret = request_irq(IRQ_RTC, bfin_rtc_interrupt, IRQF_SHARED, pdev->name, dev);
Expand All @@ -386,8 +387,6 @@ static int __devinit bfin_rtc_probe(struct platform_device *pdev)
goto err_irq;
}

device_init_wakeup(dev, 1);

return 0;

err_irq:
Expand Down

0 comments on commit 8c9166f

Please sign in to comment.