Commit 451be648064064c3edbc532b4a3469d2d018ff5c

Authored by Thierry Reding
Committed by Lee Jones
1 parent 871c3cf4ea

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/mfd/rtsx_pcr.c
... ... @@ -947,6 +947,7 @@
947 947 mutex_unlock(&pcr->pcr_mutex);
948 948 }
949 949  
  950 +#ifdef CONFIG_PM
950 951 static void rtsx_pci_power_off(struct rtsx_pcr *pcr, u8 pm_state)
951 952 {
952 953 if (pcr->ops->turn_off_led)
... ... @@ -961,6 +962,7 @@
961 962 if (pcr->ops->force_power_down)
962 963 pcr->ops->force_power_down(pcr, pm_state);
963 964 }
  965 +#endif
964 966  
965 967 static int rtsx_pci_init_hw(struct rtsx_pcr *pcr)
966 968 {