diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-04-05 16:49:48 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-05-26 17:45:44 +0200 |
commit | ccd93854d44710adaa02cecf0ef5f24ab383dd20 (patch) | |
tree | 4e1f3d835631cec271f6ea7ec19c45b2f5a98925 /drivers/mtd/maps/rbtx4939-flash.c | |
parent | [MTD] Restore suspend/resume support for mtd devices (diff) | |
download | linux-ccd93854d44710adaa02cecf0ef5f24ab383dd20.tar.xz linux-ccd93854d44710adaa02cecf0ef5f24ab383dd20.zip |
[MTD] Remove mtd->{suspend,resume} calls from board drivers
Now the MTD core will do this for us, we don't need to hook it up from
the board drivers.
Shame we can't do shutdown from the class too...
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/rbtx4939-flash.c')
-rw-r--r-- | drivers/mtd/maps/rbtx4939-flash.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/mtd/maps/rbtx4939-flash.c b/drivers/mtd/maps/rbtx4939-flash.c index d39f0adac846..83ed64512c5e 100644 --- a/drivers/mtd/maps/rbtx4939-flash.c +++ b/drivers/mtd/maps/rbtx4939-flash.c @@ -145,25 +145,6 @@ err_out: } #ifdef CONFIG_PM -static int rbtx4939_flash_suspend(struct platform_device *dev, - pm_message_t state) -{ - struct rbtx4939_flash_info *info = platform_get_drvdata(dev); - - if (info->mtd->suspend) - return info->mtd->suspend(info->mtd); - return 0; -} - -static int rbtx4939_flash_resume(struct platform_device *dev) -{ - struct rbtx4939_flash_info *info = platform_get_drvdata(dev); - - if (info->mtd->resume) - info->mtd->resume(info->mtd); - return 0; -} - static void rbtx4939_flash_shutdown(struct platform_device *dev) { struct rbtx4939_flash_info *info = platform_get_drvdata(dev); @@ -173,16 +154,12 @@ static void rbtx4939_flash_shutdown(struct platform_device *dev) info->mtd->resume(info->mtd); } #else -#define rbtx4939_flash_suspend NULL -#define rbtx4939_flash_resume NULL #define rbtx4939_flash_shutdown NULL #endif static struct platform_driver rbtx4939_flash_driver = { .probe = rbtx4939_flash_probe, .remove = rbtx4939_flash_remove, - .suspend = rbtx4939_flash_suspend, - .resume = rbtx4939_flash_resume, .shutdown = rbtx4939_flash_shutdown, .driver = { .name = "rbtx4939-flash", |