[PATCH 1/2] mmc: sdhci-esdhc-imx: remove unused is_imx6q_usdhc

Bough Chen haibo.chen at nxp.com
Tue Jun 1 04:59:24 PDT 2021


> -----Original Message-----
> From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski at canonical.com]
> Sent: 2021年6月1日 17:54
> To: Adrian Hunter <adrian.hunter at intel.com>; Ulf Hansson
> <ulf.hansson at linaro.org>; Shawn Guo <shawnguo at kernel.org>; Sascha
> Hauer <s.hauer at pengutronix.de>; Pengutronix Kernel Team
> <kernel at pengutronix.de>; Fabio Estevam <festevam at gmail.com>;
> dl-linux-imx <linux-imx at nxp.com>; Orson Zhai <orsonzhai at gmail.com>;
> Baolin Wang <baolin.wang7 at gmail.com>; Chunyan Zhang
> <zhang.lyra at gmail.com>; linux-mmc at vger.kernel.org;
> linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski at canonical.com>; kernel test
> robot <lkp at intel.com>
> Subject: [PATCH 1/2] 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'

Reviewed-by: Haibo Chen <haibo.chen at nxp.com>

> 
> Reported-by: kernel test robot <lkp at intel.com>
> Fixes: f47c4bbfa283 ("mmc: sdhci-esdhc-imx: create struct esdhc_soc_data")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at canonical.com>
> ---
>  drivers/mmc/host/sdhci-esdhc-imx.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c
> b/drivers/mmc/host/sdhci-esdhc-imx.c
> index fba4a963d12e..7336ae749137 100644
> --- a/drivers/mmc/host/sdhci-esdhc-imx.c
> +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
> @@ -324,11 +324,6 @@ static inline int is_imx53_esdhc(struct
> pltfm_imx_data *data)
>  	return data->socdata == &esdhc_imx53_data;  }
> 
> -static inline int is_imx6q_usdhc(struct pltfm_imx_data *data) -{
> -	return data->socdata == &usdhc_imx6q_data;
> -}
> -
>  static inline int esdhc_is_usdhc(struct pltfm_imx_data *data)  {
>  	return !!(data->socdata->flags & ESDHC_FLAG_USDHC);
> --
> 2.27.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 9571 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210601/7b4d9d1f/attachment.p7s>


More information about the linux-arm-kernel mailing list