From: Marc Gonzalez Date: Tue, 3 May 2016 15:40:08 +0000 (+0200) Subject: thermal: tango: initialize TEMPSI_CFG X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=431c30f74cdffba6456b52742e80f9b629228940;p=deliverable%2Flinux.git thermal: tango: initialize TEMPSI_CFG TEMPSI_CFG is not equal to 0 at reset. It must be initialized. Signed-off-by: Marc Gonzalez Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/tango_thermal.c b/drivers/thermal/tango_thermal.c index 22f9b1e92db1..70e0d9f406e9 100644 --- a/drivers/thermal/tango_thermal.c +++ b/drivers/thermal/tango_thermal.c @@ -80,6 +80,7 @@ static int tango_thermal_probe(struct platform_device *pdev) return PTR_ERR(priv->base); priv->thresh_idx = IDX_MIN; + writel(0, priv->base + TEMPSI_CFG); writel(CMD_ON, priv->base + TEMPSI_CMD); tzdev = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, priv, &ops);