Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/clk/h8300/clk-div.c
··· 34 34 } 35 35 offset = (unsigned long)divcr & 3; 36 36 offset = (3 - offset) * 8; 37 - divcr = (void *)((unsigned long)divcr & ~3); 37 + divcr = (void __iomem *)((unsigned long)divcr & ~3); 38 38 39 39 parent_name = of_clk_get_parent_name(node, 0); 40 40 of_property_read_u32(node, "renesas,width", &width);