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

mmc: sdhci-esdhc-imx: remove unused is_imx6q_usdhc

The is_imx6q_usdhc() function is unused:

drivers/mmc/host/sdhci-esdhc-imx.c:343:19: warning: unused function 'is_imx6q_usdhc'

Reported-by: kernel test robot <lkp@intel.com>
Fixes: f47c4bbfa283 ("mmc: sdhci-esdhc-imx: create struct esdhc_soc_data")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/r/20210601095403.236007-1-krzysztof.kozlowski@canonical.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Ulf Hansson
15dd8dc9 09247e11

-5
-5
drivers/mmc/host/sdhci-esdhc-imx.c
··· 324 324 return data->socdata == &esdhc_imx53_data; 325 325 } 326 326 327 - static inline int is_imx6q_usdhc(struct pltfm_imx_data *data) 328 - { 329 - return data->socdata == &usdhc_imx6q_data; 330 - } 331 - 332 327 static inline int esdhc_is_usdhc(struct pltfm_imx_data *data) 333 328 { 334 329 return !!(data->socdata->flags & ESDHC_FLAG_USDHC);