Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1339915 > unrolled thread

[PATCH] clk: h8300: Properly cast to __iomem pointer

Started byStephen Boyd <sboyd@codeaurora.org>
First post2016-02-22 22:00 +0100
Last post2016-02-22 22:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] clk: h8300: Properly cast to __iomem pointer Stephen Boyd <sboyd@codeaurora.org> - 2016-02-22 22:00 +0100

#1339915 — [PATCH] clk: h8300: Properly cast to __iomem pointer

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-02-22 22:00 +0100
Subject[PATCH] clk: h8300: Properly cast to __iomem pointer
Message-ID<r55Kj-2Wr-33@gated-at.bofh.it>
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web