mmc: sdio: Fix PM_SLEEP related build warnings
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 9 Aug 2012 09:32:21 +0000 (09:32 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 19 Sep 2012 08:29:43 +0000 (16:29 +0800)
Power management callbacks defined by SIMPLE_DEV_PM_OPS are only used if
the PM_SLEEP Kconfig symbol has been defined. If not, the compiler will
complain about them being unused. However, since the callback for this
driver doesn't do anything it can just as well be dropped.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio_bus.c

index 236842ec955aa59f4af1ddc5fed8ab44a043dc89..6bf68799fe9733c18643d4e65f57c313abcd5b0b 100644 (file)
@@ -193,14 +193,7 @@ static int sdio_bus_remove(struct device *dev)
 }
 
 #ifdef CONFIG_PM
-
-static int pm_no_operation(struct device *dev)
-{
-       return 0;
-}
-
 static const struct dev_pm_ops sdio_bus_pm_ops = {
-       SET_SYSTEM_SLEEP_PM_OPS(pm_no_operation, pm_no_operation)
        SET_RUNTIME_PM_OPS(
                pm_generic_runtime_suspend,
                pm_generic_runtime_resume,