]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: h8300: Properly cast to __iomem pointer
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 22 Feb 2016 20:36:15 +0000 (12:36 -0800)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 27 Feb 2016 00:01:32 +0000 (16:01 -0800)
Sparse complains here because we dropped the __iomem annotation
when casting the aligned address. Add __iomem back so that sparse
stops complaining.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: <uclinux-h8-devel@lists.sourceforge.jp>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/h8300/clk-div.c

index 5ecc0664e33cc8d1e1a75cfaf1b6f2c363c56c5c..4bf44a25d950daea6c0b526b90b890e5c361cda3 100644 (file)
@@ -34,7 +34,7 @@ static void __init h8300_div_clk_setup(struct device_node *node)
        }
        offset = (unsigned long)divcr & 3;
        offset = (3 - offset) * 8;
-       divcr = (void *)((unsigned long)divcr & ~3);
+       divcr = (void __iomem *)((unsigned long)divcr & ~3);
 
        parent_name = of_clk_get_parent_name(node, 0);
        of_property_read_u32(node, "renesas,width", &width);