aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/rcar_thermal.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index a8ed0e0265ae..8803e693fe68 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -374,10 +374,8 @@ static int rcar_thermal_probe(struct platform_device *pdev)
374 int idle = IDLE_INTERVAL; 374 int idle = IDLE_INTERVAL;
375 375
376 common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL); 376 common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL);
377 if (!common) { 377 if (!common)
378 dev_err(dev, "Could not allocate common\n");
379 return -ENOMEM; 378 return -ENOMEM;
380 }
381 379
382 INIT_LIST_HEAD(&common->head); 380 INIT_LIST_HEAD(&common->head);
383 spin_lock_init(&common->lock); 381 spin_lock_init(&common->lock);
@@ -423,7 +421,6 @@ static int rcar_thermal_probe(struct platform_device *pdev)
423 421
424 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); 422 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
425 if (!priv) { 423 if (!priv) {
426 dev_err(dev, "Could not allocate priv\n");
427 ret = -ENOMEM; 424 ret = -ENOMEM;
428 goto error_unregister; 425 goto error_unregister;
429 } 426 }