clk: ti: Force pointer to be __iomem
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 15 Jul 2015 19:58:22 +0000 (12:58 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 28 Jul 2015 18:58:41 +0000 (11:58 -0700)
Add __force here so that sparse doesn't complain about us playing
tricks with __iomem.

Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/ti/clk.c

index 0d8861cf21a8269a6db88d2882c94052f6891ecb..78a47ccff19a0c0f0a1f85a83656baf3f41d5285 100644 (file)
@@ -193,7 +193,7 @@ void __iomem *ti_clk_get_reg_addr(struct device_node *node, int index)
 
        reg->offset = val;
 
-       return (void __iomem *)tmp;
+       return (__force void __iomem *)tmp;
 }
 
 /**