diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-08-20 17:09:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-20 18:40:30 -0400 |
commit | 8c9166f7a60b67909632ea60a032c18d84ed8af0 (patch) | |
tree | f7dd0167fb02449a35a91b2d2af2ec2e94a9b97d /drivers/rtc | |
parent | fe2e1cf83a46c879a66ec5146ba7a09a6aef0a5c (diff) |
Blackfin RTC Driver: do all initialization before we register the rtc and make it available
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
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-bfin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index 51741dc12911..9d2da1cd7773 100644 --- a/drivers/rtc/rtc-bfin.c +++ b/drivers/rtc/rtc-bfin.c | |||
@@ -371,6 +371,7 @@ static int __devinit bfin_rtc_probe(struct platform_device *pdev) | |||
371 | if (unlikely(!rtc)) | 371 | if (unlikely(!rtc)) |
372 | return -ENOMEM; | 372 | return -ENOMEM; |
373 | platform_set_drvdata(pdev, rtc); | 373 | platform_set_drvdata(pdev, rtc); |
374 | device_init_wakeup(dev, 1); | ||
374 | 375 | ||
375 | /* Grab the IRQ and init the hardware */ | 376 | /* Grab the IRQ and init the hardware */ |
376 | ret = request_irq(IRQ_RTC, bfin_rtc_interrupt, IRQF_SHARED, pdev->name, dev); | 377 | 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) | |||
386 | goto err_irq; | 387 | goto err_irq; |
387 | } | 388 | } |
388 | 389 | ||
389 | device_init_wakeup(dev, 1); | ||
390 | |||
391 | return 0; | 390 | return 0; |
392 | 391 | ||
393 | err_irq: | 392 | err_irq: |