mtd: sa11x0: Remove shutdown handler

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Mar 26 20:59:04 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=41515ca262d5b75220f48afd21214dbe3ccfef8c
Commit:     41515ca262d5b75220f48afd21214dbe3ccfef8c
Parent:     495c47d799d93ad688db9db170200eb71525ff45
Author:     Russell King - ARM Linux <linux at arm.linux.org.uk>
AuthorDate: Fri Jan 20 10:42:16 2012 +0000
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 00:15:01 2012 +0100

    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 at arm.linux.org.uk>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/maps/sa1100-flash.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index 5028219..c735569 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)
 	return 0;
 }
 
-#ifdef CONFIG_PM
-static void sa1100_mtd_shutdown(struct platform_device *dev)
-{
-	struct sa_info *info = platform_get_drvdata(dev);
-	if (info && mtd_suspend(info->mtd) == 0)
-		mtd_resume(info->mtd);
-}
-#else
-#define sa1100_mtd_shutdown NULL
-#endif
-
 static struct platform_driver sa1100_mtd_driver = {
 	.probe		= sa1100_mtd_probe,
 	.remove		= __exit_p(sa1100_mtd_remove),
-	.shutdown	= sa1100_mtd_shutdown,
 	.driver		= {
 		.name	= "sa1100-mtd",
 		.owner	= THIS_MODULE,



More information about the linux-mtd-cvs mailing list