Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106447
b: refs/heads/master
c: 4b5e33a
h: refs/heads/master
i:
  106445: e04b2ff
  106443: a030c17
  106439: bdf5d11
  106431: 5f5367d
v: v3
  • Loading branch information
Uwe Kleine-König authored and David Woodhouse committed Jul 25, 2008
1 parent cce9b1a commit 6add11e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 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: 7b2491911540e4904498622fbee2e1a9e3120d2f
refs/heads/master: 4b5e33a7bf185c8d8568a807d9805fb155bcedd9
15 changes: 13 additions & 2 deletions trunk/drivers/mtd/maps/physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,19 @@ static int physmap_flash_suspend(struct platform_device *dev, pm_message_t state
int i;

for (i = 0; i < MAX_RESOURCES && info->mtd[i]; i++)
if (info->mtd[i]->suspend)
ret |= info->mtd[i]->suspend(info->mtd[i]);
if (info->mtd[i]->suspend) {
ret = info->mtd[i]->suspend(info->mtd[i]);
if (ret)
goto fail;
}

return 0;
fail:
for (--i; i >= 0; --i)
if (info->mtd[i]->suspend) {
BUG_ON(!info->mtd[i]->resume);
info->mtd[i]->resume(info->mtd[i]);
}

return ret;
}
Expand Down

0 comments on commit 6add11e

Please sign in to comment.