Re: [PATCH] mmc: sdhci-msm: avoid unused function warning

2018-12-11 Thread Ulf Hansson
On Mon, 10 Dec 2018 at 21:45, Arnd Bergmann wrote: > > The newly added sdhci_msm_restore_sdr_dll_config() function is only > called if CONFIG_PM is enabled: > > drivers/mmc/host/sdhci-msm.c:1050:12: error: > 'sdhci_msm_restore_sdr_dll_config' defined but not used > [-Werror=unused-function] > >

Re: [PATCH] mmc: sdhci-msm: avoid unused function warning

2018-12-10 Thread Adrian Hunter
On 10/12/18 10:45 PM, Arnd Bergmann wrote: > The newly added sdhci_msm_restore_sdr_dll_config() function is only > called if CONFIG_PM is enabled: > > drivers/mmc/host/sdhci-msm.c:1050:12: error: > 'sdhci_msm_restore_sdr_dll_config' defined but not used > [-Werror=unused-function] > > Better

[PATCH] mmc: sdhci-msm: avoid unused function warning

2018-12-10 Thread Arnd Bergmann
The newly added sdhci_msm_restore_sdr_dll_config() function is only called if CONFIG_PM is enabled: drivers/mmc/host/sdhci-msm.c:1050:12: error: 'sdhci_msm_restore_sdr_dll_config' defined but not used [-Werror=unused-function] Better remove the incorrect #ifdef altogether and just use