[PATCH 1/2] thermal: rcar: fix ENR register value

From
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Date
2015-01-06 10:02:07
Also in
linux-sh
Reply to
Yoshihiro Shimoda, 2015-01-06
Since the write value should always be 0 for bit 31-4 of ENR register
on R-Car H2, this patch fixes the value.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 drivers/thermal/rcar_thermal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 8803e69..bbdf64e 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -409,7 +409,7 @@ static int rcar_thermal_probe(struct platform_device *pdev)
 			return PTR_ERR(common->base);
 
 		/* enable temperature comparation */
-		rcar_thermal_common_write(common, ENR, 0x00030303);
+		rcar_thermal_common_write(common, ENR, 0x00000003);
 
 		idle = 0; /* polling delay is not needed */
 	}
-- 
1.7.9.5
Thread (8 messages) 8 messages, 3 authors, last reply 2015-01-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help