Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thierry Reding and committed by
Lee Jones
451be648 871c3cf4

+2
+2
drivers/mfd/rtsx_pcr.c
··· 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) ··· 962 961 if (pcr->ops->force_power_down) 963 962 pcr->ops->force_power_down(pcr, pm_state); 964 963 } 964 + #endif 965 965 966 966 static int rtsx_pci_init_hw(struct rtsx_pcr *pcr) 967 967 {