mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
rtc: remove more dev->power.power_state usage
Remove some more references to dev->power.power_state. That field is overdue for removal, but we can't do that while it's still referenced in the kernel. The only reason to update it was to make the /sys/devices/.../power/state files (now removed) work better. Signed-off-by: David Brownell <[email protected]> Cc: Russell King <[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
8696e70267
commit
f618258ad8
1 changed files with 4 additions and 12 deletions
|
|
@ -357,23 +357,15 @@ static int sa1100_rtc_remove(struct platform_device *pdev)
|
|||
#ifdef CONFIG_PM
|
||||
static int sa1100_rtc_suspend(struct platform_device *pdev, pm_message_t state)
|
||||
{
|
||||
if (pdev->dev.power.power_state.event != state.event) {
|
||||
if (state.event == PM_EVENT_SUSPEND &&
|
||||
device_may_wakeup(&pdev->dev))
|
||||
enable_irq_wake(IRQ_RTCAlrm);
|
||||
|
||||
pdev->dev.power.power_state = state;
|
||||
}
|
||||
if (device_may_wakeup(&pdev->dev))
|
||||
enable_irq_wake(IRQ_RTCAlrm);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sa1100_rtc_resume(struct platform_device *pdev)
|
||||
{
|
||||
if (pdev->dev.power.power_state.event != PM_EVENT_ON) {
|
||||
if (device_may_wakeup(&pdev->dev))
|
||||
disable_irq_wake(IRQ_RTCAlrm);
|
||||
pdev->dev.power.power_state = PMSG_ON;
|
||||
}
|
||||
if (device_may_wakeup(&pdev->dev))
|
||||
disable_irq_wake(IRQ_RTCAlrm);
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue