clk: h8300: Properly cast to __iomem pointer
PATCH 1/1 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 <[email protected]>
Cc <[email protected]>
Signed-off-by Stephen Boyd <[email protected]>
--- drivers/clk/h8300/clk-div.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/h8300/clk-div.c +1 -1
@@ -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);
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project