aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/spear_thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/spear_thermal.c')
-rw-r--r--drivers/thermal/spear_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c
index be94413b95a3..c2e32df3b164 100644
--- a/drivers/thermal/spear_thermal.c
+++ b/drivers/thermal/spear_thermal.c
@@ -149,9 +149,9 @@ static int spear_thermal_probe(struct platform_device *pdev)
149 149
150 spear_thermal = thermal_zone_device_register("spear_thermal", 0, 150 spear_thermal = thermal_zone_device_register("spear_thermal", 0,
151 stdev, &ops, 0, 0, 0, 0); 151 stdev, &ops, 0, 0, 0, 0);
152 if (!spear_thermal) { 152 if (IS_ERR(spear_thermal)) {
153 dev_err(&pdev->dev, "thermal zone device is NULL\n"); 153 dev_err(&pdev->dev, "thermal zone device is NULL\n");
154 ret = -EINVAL; 154 ret = PTR_ERR(spear_thermal);
155 goto disable_clk; 155 goto disable_clk;
156 } 156 }
157 157