__iomem applies to the IOMEM() pointee, not to the auto pointer
that points at it. Move the annotation to correct this.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 drivers/clk/imx/clk-vf610.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c
index d70f4416cbe1..4f7e097a8945 100644
--- a/drivers/clk/imx/clk-vf610.c
+++ b/drivers/clk/imx/clk-vf610.c
@@ -535,7 +535,7 @@ static int vf610_switch_cpu_clock_to_400mhz(void)
 {
        int ret;
        uint32_t cr117;
-       void * __iomem ddrmc = IOMEM(VF610_DDR_BASE_ADDR);
+       void __iomem *ddrmc = IOMEM(VF610_DDR_BASE_ADDR);
 
        ret = clk_set_parent(clk[VF610_CLK_PLL2_PFD_SEL], 
clk[VF610_CLK_PLL2_PFD2]);
        if (ret < 0) {
-- 
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to