Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11303
b: refs/heads/master
c: 13bfb34
h: refs/heads/master
i:
  11301: fa6db6a
  11299: 4d6e759
  11295: a75d3b4
v: v3
  • Loading branch information
Russell King authored and Russell King committed Oct 29, 2005
1 parent 2d2025c commit f041cfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 183e1a349466a1b90430a58f3efad25a3e555cb2
refs/heads/master: 13bfb34c10fae6016710f5f070043c8b94b40583
9 changes: 9 additions & 0 deletions trunk/drivers/mtd/maps/sa1100-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,17 @@ static int sa1100_mtd_resume(struct device *dev)
info->mtd->resume(info->mtd);
return 0;
}

static void sa1100_mtd_shutdown(struct device *dev)
{
struct sa_info *info = dev_get_drvdata(dev);
if (info && info->mtd->suspend(info->mtd) == 0)
info->mtd->resume(info->mtd);
}
#else
#define sa1100_mtd_suspend NULL
#define sa1100_mtd_resume NULL
#define sa1100_mtd_shutdown NULL
#endif

static struct device_driver sa1100_mtd_driver = {
Expand All @@ -452,6 +460,7 @@ static struct device_driver sa1100_mtd_driver = {
.remove = __exit_p(sa1100_mtd_remove),
.suspend = sa1100_mtd_suspend,
.resume = sa1100_mtd_resume,
.shutdown = sa1100_mtd_shutdown,
};

static int __init sa1100_mtd_init(void)
Expand Down

0 comments on commit f041cfb

Please sign in to comment.