summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-10-02 09:25:17 +0200
committerLee Jones <lee.jones@linaro.org>2014-11-10 15:21:59 +0000
commit451be648064064c3edbc532b4a3469d2d018ff5c (patch)
tree0a91ce3b90f69aa52d16db3e986fdc67bb57b86d /drivers/mfd
parent871c3cf4ea7d5baf58e0a40bce7431ca5525aa2a (diff)
downloadop-kernel-dev-451be648064064c3edbc532b4a3469d2d018ff5c.zip
op-kernel-dev-451be648064064c3edbc532b4a3469d2d018ff5c.tar.gz
mfd: rtsx: Fix build warnings for !PM
rtsx_pci_power_off() is called only from rtsx_pci_suspend(), which isn't built when PM is disabled. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/rtsx_pcr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c
index f2643c2..30f7ca8 100644
--- a/drivers/mfd/rtsx_pcr.c
+++ b/drivers/mfd/rtsx_pcr.c
@@ -947,6 +947,7 @@ static void rtsx_pci_idle_work(struct work_struct *work)
mutex_unlock(&pcr->pcr_mutex);
}
+#ifdef CONFIG_PM
static void rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state)
{
if (pcr->ops->turn_off_led)
@@ -961,6 +962,7 @@ static void rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state)
if (pcr->ops->force_power_down)
pcr->ops->force_power_down(pcr, pm_state);
}
+#endif
static int rtsx_pci_init_hw(struct rtsx_pcr *pcr)
{
OpenPOWER on IntegriCloud