diff options
| -rw-r--r-- | arch/sh/kernel/cpu/shmobile/pm_runtime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/pm_runtime.c b/arch/sh/kernel/cpu/shmobile/pm_runtime.c index 22db127afa7b..64c807c39208 100644 --- a/arch/sh/kernel/cpu/shmobile/pm_runtime.c +++ b/arch/sh/kernel/cpu/shmobile/pm_runtime.c | |||
| @@ -157,7 +157,7 @@ static int default_platform_runtime_suspend(struct device *dev) | |||
| 157 | might_sleep(); | 157 | might_sleep(); |
| 158 | 158 | ||
| 159 | /* catch misconfigured drivers not starting with resume */ | 159 | /* catch misconfigured drivers not starting with resume */ |
| 160 | if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &pdev->archdata.flags)) { | 160 | if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &ad->flags)) { |
| 161 | ret = -EINVAL; | 161 | ret = -EINVAL; |
| 162 | goto out; | 162 | goto out; |
| 163 | } | 163 | } |
| @@ -170,8 +170,8 @@ static int default_platform_runtime_suspend(struct device *dev) | |||
| 170 | 170 | ||
| 171 | /* put device on idle list */ | 171 | /* put device on idle list */ |
| 172 | spin_lock_irqsave(&hwblk_lock, flags); | 172 | spin_lock_irqsave(&hwblk_lock, flags); |
| 173 | list_add_tail(&pdev->archdata.entry, &hwblk_idle_list); | 173 | list_add_tail(&ad->entry, &hwblk_idle_list); |
| 174 | __set_bit(PDEV_ARCHDATA_FLAG_IDLE, &pdev->archdata.flags); | 174 | __set_bit(PDEV_ARCHDATA_FLAG_IDLE, &ad->flags); |
| 175 | spin_unlock_irqrestore(&hwblk_lock, flags); | 175 | spin_unlock_irqrestore(&hwblk_lock, flags); |
| 176 | 176 | ||
| 177 | /* increase idle count */ | 177 | /* increase idle count */ |
