diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2012-08-09 05:32:21 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-19 04:29:43 -0400 |
commit | d8e2ac330f65bcf47e8894fe5331a7e8ee019c06 (patch) | |
tree | d5c5beb87d90bc09eb36b63bf1d1f3479ee34946 | |
parent | 1a41313e7f8c5b724a2e3ff66558dbe811844423 (diff) |
mmc: sdio: Fix PM_SLEEP related build warnings
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>
-rw-r--r-- | drivers/mmc/core/sdio_bus.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 236842ec955a..6bf68799fe97 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c | |||
@@ -193,14 +193,7 @@ static int sdio_bus_remove(struct device *dev) | |||
193 | } | 193 | } |
194 | 194 | ||
195 | #ifdef CONFIG_PM | 195 | #ifdef CONFIG_PM |
196 | |||
197 | static int pm_no_operation(struct device *dev) | ||
198 | { | ||
199 | return 0; | ||
200 | } | ||
201 | |||
202 | static const struct dev_pm_ops sdio_bus_pm_ops = { | 196 | static const struct dev_pm_ops sdio_bus_pm_ops = { |
203 | SET_SYSTEM_SLEEP_PM_OPS(pm_no_operation, pm_no_operation) | ||
204 | SET_RUNTIME_PM_OPS( | 197 | SET_RUNTIME_PM_OPS( |
205 | pm_generic_runtime_suspend, | 198 | pm_generic_runtime_suspend, |
206 | pm_generic_runtime_resume, | 199 | pm_generic_runtime_resume, |