diff options
author | Chuanxiao Dong <chuanxiao.dong@intel.com> | 2012-04-23 03:18:02 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-04-23 08:11:28 -0400 |
commit | 0dd1bfeb6cc89467261cc62ca81e0ac5da78ec0a (patch) | |
tree | 5edbba5851edd21d4e1c51b75fc25e5209144357 /drivers/mmc/core | |
parent | 48b332f9916f33ba0001b78e5cea49ef17f3c81e (diff) |
mmc: core: check PM_SLEEP for mmc_bus_suspend/resume callbacks
If PM_SLEEP is not enabled, mmc.c will give warnning since mmc_bus_suspend/
mmc_bus_resume functions are defined but not used. This patch can fix this
warnning.
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/bus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index c60cee92a2b2..9b68933f27e7 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c | |||
@@ -122,6 +122,7 @@ static int mmc_bus_remove(struct device *dev) | |||
122 | return 0; | 122 | return 0; |
123 | } | 123 | } |
124 | 124 | ||
125 | #ifdef CONFIG_PM_SLEEP | ||
125 | static int mmc_bus_suspend(struct device *dev) | 126 | static int mmc_bus_suspend(struct device *dev) |
126 | { | 127 | { |
127 | struct mmc_driver *drv = to_mmc_driver(dev->driver); | 128 | struct mmc_driver *drv = to_mmc_driver(dev->driver); |
@@ -143,6 +144,7 @@ static int mmc_bus_resume(struct device *dev) | |||
143 | ret = drv->resume(card); | 144 | ret = drv->resume(card); |
144 | return ret; | 145 | return ret; |
145 | } | 146 | } |
147 | #endif | ||
146 | 148 | ||
147 | #ifdef CONFIG_PM_RUNTIME | 149 | #ifdef CONFIG_PM_RUNTIME |
148 | 150 | ||