From: Brian Norris Date: Tue, 20 May 2014 19:12:55 +0000 (-0700) Subject: mtd: bf5xx_nand: drop no-op PM support X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1360246a4f28e53d1fea30dfdff04245e54110c8;p=deliverable%2Flinux.git mtd: bf5xx_nand: drop no-op PM support This driver's suspend/resume hooks are no-ops, so just remove them. Signed-off-by: Brian Norris Cc: Julia Lawall Cc: Fabio Estevam Cc: Dan Carpenter Cc: Mike Frysinger --- diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c index 722898aea7a6..871c4f712654 100644 --- a/drivers/mtd/nand/bf5xx_nand.c +++ b/drivers/mtd/nand/bf5xx_nand.c @@ -830,34 +830,10 @@ out_err: return err; } -/* PM Support */ -#ifdef CONFIG_PM - -static int bf5xx_nand_suspend(struct platform_device *dev, pm_message_t pm) -{ - struct bf5xx_nand_info *info = platform_get_drvdata(dev); - - return 0; -} - -static int bf5xx_nand_resume(struct platform_device *dev) -{ - struct bf5xx_nand_info *info = platform_get_drvdata(dev); - - return 0; -} - -#else -#define bf5xx_nand_suspend NULL -#define bf5xx_nand_resume NULL -#endif - /* driver device registration */ static struct platform_driver bf5xx_nand_driver = { .probe = bf5xx_nand_probe, .remove = bf5xx_nand_remove, - .suspend = bf5xx_nand_suspend, - .resume = bf5xx_nand_resume, .driver = { .name = DRV_NAME, .owner = THIS_MODULE,