aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-12-19 08:50:21 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 10:33:00 -0500
commit366a3591e0c1e8c1544cd8690368658a837a0846 (patch)
treebebfe33e7f3a473f8e9a8f10d793b05b46e9f858 /drivers/mtd/maps
parentd65b4e98d7ea3038b767b70fe8be959b2913f16d (diff)
MTD: sa11x0: Remove shutdown handler
Commit c4a9f88daf ([MTD] [NOR] fix ctrl-alt-del can't reboot for intel flash bug) interferes with this work-around, causing MTD to issue this warning: Flash device refused suspend due to active operation (state 0) The commit makes our work-around in the map driver unnecessary, so let's remove it. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/sa1100-flash.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index 502821997707..c7355692ea85 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -373,21 +373,9 @@ static int __exit sa1100_mtd_remove(struct platform_device *pdev)
373 return 0; 373 return 0;
374} 374}
375 375
376#ifdef CONFIG_PM
377static void sa1100_mtd_shutdown(struct platform_device *dev)
378{
379 struct sa_info *info = platform_get_drvdata(dev);
380 if (info && mtd_suspend(info->mtd) == 0)
381 mtd_resume(info->mtd);
382}
383#else
384#define sa1100_mtd_shutdown NULL
385#endif
386
387static struct platform_driver sa1100_mtd_driver = { 376static struct platform_driver sa1100_mtd_driver = {
388 .probe = sa1100_mtd_probe, 377 .probe = sa1100_mtd_probe,
389 .remove = __exit_p(sa1100_mtd_remove), 378 .remove = __exit_p(sa1100_mtd_remove),
390 .shutdown = sa1100_mtd_shutdown,
391 .driver = { 379 .driver = {
392 .name = "sa1100-mtd", 380 .name = "sa1100-mtd",
393 .owner = THIS_MODULE, 381 .owner = THIS_MODULE,