mmc: atmel-mci: add CONFIG_PM_SLEEP to suspend/resume functions
authorJingoo Han <jg1.han@samsung.com>
Mon, 29 Apr 2013 08:56:16 +0000 (17:56 +0900)
committerChris Ball <cjb@laptop.org>
Sun, 26 May 2013 18:23:21 +0000 (14:23 -0400)
commit5a942b6fee81c6876044099b7622a817e4a74c03
tree552d955c851345022ba766357e0dd40e9e31039c
parent87ae7bbebd9c9b32ad49dde1742aa68b5a86caf8
mmc: atmel-mci: add CONFIG_PM_SLEEP to suspend/resume functions

Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
build warning when CONFIG_PM_SLEEP is not selected. This is because
sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when
the CONFIG_PM_SLEEP is enabled.

drivers/mmc/host/atmel-mci.c:2509:12: warning: 'atmci_suspend' defined but not used [-Wunused-function]
drivers/mmc/host/atmel-mci.c:2539:12: warning: 'atmci_resume' defined but not used [-Wunused-function]

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c