[PATCH 1/2] ARM: i.MX8MM: fix sparse warnings in early clock code

Sascha Hauer sha at pengutronix.de
Mon Feb 1 03:45:47 EST 2021


On Fri, Jan 29, 2021 at 04:25:53PM +0100, Ahmad Fatoum wrote:
> Some __iomem markers were being casted away. Fix that.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  arch/arm/mach-imx/imx8m.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/imx8m.c b/arch/arm/mach-imx/imx8m.c
> index b9e01a1d1854..350d203539fc 100644
> --- a/arch/arm/mach-imx/imx8m.c
> +++ b/arch/arm/mach-imx/imx8m.c
> @@ -35,14 +35,14 @@
>  
>  void imx8m_clock_set_target_val(int clock_id, u32 val)
>  {
> -	void *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
> +	void __iomem *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
>  
>  	writel(val, ccm + IMX8M_CCM_TARGET_ROOTn(clock_id));
>  }
>  
>  void imx8m_ccgr_clock_enable(int index)
>  {
> -	void *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
> +	void __iomem *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
>  
>  	writel(IMX8M_CCM_CCGR_SETTINGn_NEEDED(0),
>  	       ccm + IMX8M_CCM_CCGRn_SET(index));
> @@ -50,7 +50,7 @@ void imx8m_ccgr_clock_enable(int index)
>  
>  void imx8m_ccgr_clock_disable(int index)
>  {
> -	void *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
> +	void __iomem *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
>  
>  	writel(IMX8M_CCM_CCGR_SETTINGn_NEEDED(0),
>  	       ccm + IMX8M_CCM_CCGRn_CLR(index));
> -- 
> 2.30.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list