Skip to content

Commit

Permalink
mmc: sdio: Fix PM_SLEEP related build warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Chris Ball committed Sep 19, 2012
1 parent 1a41313 commit d8e2ac3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d8e2ac3

Please sign in to comment.