Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84306
b: refs/heads/master
c: d547668
h: refs/heads/master
v: v3
  • Loading branch information
akpm@linux-foundation.org authored and David Woodhouse committed Feb 7, 2008
1 parent 72a3409 commit ab53ab3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 6c77fd649fab4bea1b44cb534381a22e37650bc3
refs/heads/master: d5476689afd48e71395602698409e9f48cbba413
14 changes: 8 additions & 6 deletions trunk/drivers/mtd/maps/physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static int physmap_flash_suspend(struct platform_device *dev, pm_message_t state

if (info)
for (i = 0; i < MAX_RESOURCES; i++)
ret |= info->mtd[i].suspend(info->mtd[i]);
ret |= info->mtd[i]->suspend(info->mtd[i]);

return ret;
}
Expand All @@ -216,7 +216,7 @@ static int physmap_flash_resume(struct platform_device *dev)

if (info)
for (i = 0; i < MAX_RESOURCES; i++)
info->mtd[i].resume(info->mtd[i]);
info->mtd[i]->resume(info->mtd[i]);
return 0;
}

Expand All @@ -226,19 +226,21 @@ static void physmap_flash_shutdown(struct platform_device *dev)
int i;

for (i = 0; i < MAX_RESOURCES; i++)
if (info && info->mtd[i].suspend(info->mtd[i]) == 0)
info->mtd[i].resume(info->mtd[i]);
if (info && info->mtd[i]->suspend(info->mtd[i]) == 0)
info->mtd[i]->resume(info->mtd[i]);
}
#else
#define physmap_flash_suspend NULL
#define physmap_flash_resume NULL
#define physmap_flash_shutdown NULL
#endif

static struct platform_driver physmap_flash_driver = {
.probe = physmap_flash_probe,
.remove = physmap_flash_remove,
#ifdef CONFIG_PM
.suspend = physmap_flash_suspend,
.resume = physmap_flash_resume,
.shutdown = physmap_flash_shutdown,
#endif
.driver = {
.name = "physmap-flash",
},
Expand Down

0 comments on commit ab53ab3

Please sign in to comment.