Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250376
b: refs/heads/master
c: 3e4cd07
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Paul Mundt committed May 23, 2011
1 parent e76b530 commit 2132c75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54aa89ea29d7dd7fd414297d4bdc8f6eff905784
refs/heads/master: 3e4cd0737d2e9c3dd52153a23aef1753e3a99fc4
6 changes: 3 additions & 3 deletions trunk/arch/sh/kernel/cpu/shmobile/pm_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int default_platform_runtime_suspend(struct device *dev)
might_sleep();

/* catch misconfigured drivers not starting with resume */
if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &pdev->archdata.flags)) {
if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &ad->flags)) {
ret = -EINVAL;
goto out;
}
Expand All @@ -170,8 +170,8 @@ static int default_platform_runtime_suspend(struct device *dev)

/* put device on idle list */
spin_lock_irqsave(&hwblk_lock, flags);
list_add_tail(&pdev->archdata.entry, &hwblk_idle_list);
__set_bit(PDEV_ARCHDATA_FLAG_IDLE, &pdev->archdata.flags);
list_add_tail(&ad->entry, &hwblk_idle_list);
__set_bit(PDEV_ARCHDATA_FLAG_IDLE, &ad->flags);
spin_unlock_irqrestore(&hwblk_lock, flags);

/* increase idle count */
Expand Down

0 comments on commit 2132c75

Please sign in to comment.