thermal: convert rcar_thermal to use devm_thermal_zone_of_sensor_register
[linux-2.6-microblaze.git] / drivers / thermal / rcar_thermal.c
index 82daba0..71a3392 100644 (file)
@@ -492,7 +492,7 @@ static int rcar_thermal_probe(struct platform_device *pdev)
                        goto error_unregister;
 
                if (of_data == USE_OF_THERMAL)
-                       priv->zone = thermal_zone_of_sensor_register(
+                       priv->zone = devm_thermal_zone_of_sensor_register(
                                                dev, i, priv,
                                                &rcar_thermal_zone_of_ops);
                else