From 52dcbd53811e8d9899252aed4a5c94d142c46f0b Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 21 Mar 2012 12:55:04 -0700 Subject: [PATCH] --- yaml --- r: 298042 b: refs/heads/master c: 03ee62f0b9919535a1be02f72fe8153255a7fda0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/thermal/spear_thermal.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index f78fa95d28af..33107db8ed9d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: de716e32e61fae5d1f0d000008d3f641cec5c9dd +refs/heads/master: 03ee62f0b9919535a1be02f72fe8153255a7fda0 diff --git a/trunk/drivers/thermal/spear_thermal.c b/trunk/drivers/thermal/spear_thermal.c index be94413b95a3..c2e32df3b164 100644 --- a/trunk/drivers/thermal/spear_thermal.c +++ b/trunk/drivers/thermal/spear_thermal.c @@ -149,9 +149,9 @@ static int spear_thermal_probe(struct platform_device *pdev) spear_thermal = thermal_zone_device_register("spear_thermal", 0, stdev, &ops, 0, 0, 0, 0); - if (!spear_thermal) { + if (IS_ERR(spear_thermal)) { dev_err(&pdev->dev, "thermal zone device is NULL\n"); - ret = -EINVAL; + ret = PTR_ERR(spear_thermal); goto disable_clk; }