]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/thermal/rcar_gen3_thermal.c
rbd: cancel lock_dwork if the wait is interrupted
[linux.git] / drivers / thermal / rcar_gen3_thermal.c
index a56463308694e937028bed12111579a72c243c49..755d2b5bd2c2b552eb16effcfd2f7fe27777d66f 100644 (file)
@@ -443,9 +443,8 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev)
                if (ret)
                        goto error_unregister;
 
-               ret = devm_add_action(dev, rcar_gen3_hwmon_action, zone);
+               ret = devm_add_action_or_reset(dev, rcar_gen3_hwmon_action, zone);
                if (ret) {
-                       rcar_gen3_hwmon_action(zone);
                        goto error_unregister;
                }