Skip to content

Commit

Permalink
[ARM] 5109/1: Mark rtc sa1100 driver as wakeup source before register…
Browse files Browse the repository at this point in the history
…ing it

Mark rtc sa1100 driver as wakeup source before registering it.
rtc_device_register evaluates device_can_wakeup(rtc->dev.parent) and
supresses the creation of /sys/class/rtc/rtcX/wakealarm if
device_can_wakeup is not (yet) true.

Signed-off-by: Uli Luckas <u.luckas@road.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Uli Luckas authored and Russell King committed Jun 22, 2008
1 parent ee98476 commit e5a2c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-sa1100.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ static int sa1100_rtc_probe(struct platform_device *pdev)
RCNR = 0;
}

device_init_wakeup(&pdev->dev, 1);

rtc = rtc_device_register(pdev->name, &pdev->dev, &sa1100_rtc_ops,
THIS_MODULE);

if (IS_ERR(rtc))
return PTR_ERR(rtc);

device_init_wakeup(&pdev->dev, 1);

platform_set_drvdata(pdev, rtc);

return 0;
Expand Down

0 comments on commit e5a2c9c

Please sign in to comment.