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>
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);
goto err_irq;
}
- device_init_wakeup(dev, 1);
-
return 0;
err_irq: