summaryrefslogtreecommitdiff
path: root/drivers/thermal/loongson2_thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/loongson2_thermal.c')
-rw-r--r--drivers/thermal/loongson2_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/loongson2_thermal.c b/drivers/thermal/loongson2_thermal.c
index 133098dc0854..99ca0c7bc41c 100644
--- a/drivers/thermal/loongson2_thermal.c
+++ b/drivers/thermal/loongson2_thermal.c
@@ -127,7 +127,7 @@ static int loongson2_thermal_probe(struct platform_device *pdev)
if (!IS_ERR(tzd))
break;
- if (PTR_ERR(tzd) != ENODEV)
+ if (PTR_ERR(tzd) != -ENODEV)
continue;
return dev_err_probe(dev, PTR_ERR(tzd), "failed to register");