All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: bf5xx_nand: drop no-op PM support
@ 2014-05-20 19:16 Brian Norris
  2014-07-03  0:43 ` Brian Norris
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Norris @ 2014-05-20 19:16 UTC (permalink / raw)
  To: linux-mtd
  Cc: Julia Lawall, Brian Norris, Fabio Estevam, Mike Frysinger, Dan Carpenter

This driver's suspend/resume hooks are no-ops, so just remove them.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Mike Frysinger <vapier.adi@gmail.com>
---
 drivers/mtd/nand/bf5xx_nand.c | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
index b7a24946ca26..47121d28015d 100644
--- a/drivers/mtd/nand/bf5xx_nand.c
+++ b/drivers/mtd/nand/bf5xx_nand.c
@@ -835,34 +835,10 @@ out_err_kzalloc:
 	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,
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: bf5xx_nand: drop no-op PM support
  2014-05-20 19:16 [PATCH] mtd: bf5xx_nand: drop no-op PM support Brian Norris
@ 2014-07-03  0:43 ` Brian Norris
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2014-07-03  0:43 UTC (permalink / raw)
  To: linux-mtd; +Cc: Julia Lawall, Fabio Estevam, Mike Frysinger, Dan Carpenter

On Tue, May 20, 2014 at 12:16:26PM -0700, Brian Norris wrote:
> This driver's suspend/resume hooks are no-ops, so just remove them.
> 
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> Cc: Julia Lawall <Julia.Lawall@lip6.fr>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Dan Carpenter <dan.carpenter@oracle.com>
> Cc: Mike Frysinger <vapier.adi@gmail.com>

Pushed to l2-mtd.git.

Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-03  0:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-20 19:16 [PATCH] mtd: bf5xx_nand: drop no-op PM support Brian Norris
2014-07-03  0:43 ` Brian Norris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.