mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Blackfin RTC Driver: do all initialization before we register the rtc 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]>
This commit is contained in:
parent
fe2e1cf83a
commit
8c9166f7a6
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue