summaryrefslogtreecommitdiff
path: root/drivers/clk/h8300
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-02-22 23:36:15 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-02-27 03:01:32 +0300
commitd3622b5885dc424cfb5e27ff7a3c79d942b2acb4 (patch)
tree15e3ad06f0049462c9537b4dafb4409a82e8d9b0 /drivers/clk/h8300
parent2cd82d06e4c62f927ede33e62f9f0507d64903c9 (diff)
downloadlinux-d3622b5885dc424cfb5e27ff7a3c79d942b2acb4.tar.xz
clk: h8300: Properly cast to __iomem pointer
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>
Diffstat (limited to 'drivers/clk/h8300')
-rw-r--r--drivers/clk/h8300/clk-div.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/h8300/clk-div.c b/drivers/clk/h8300/clk-div.c
index 5ecc0664e33c..4bf44a25d950 100644
--- a/drivers/clk/h8300/clk-div.c
+++ b/drivers/clk/h8300/clk-div.c
@@ -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);