X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fthermal%2Frcar_thermal.c;h=5f817923f374f5f08412bda03876c831da68b697;hb=48550e2ca84b2a7f0518e2800ca2a16c41a6a01d;hp=71a339271fa5fe9d796d86be9077ebbc13d4f0dc;hpb=b6d90158c935d4a22e56f41647b479ab5ea449d4;p=deliverable%2Flinux.git diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 71a339271fa5..5f817923f374 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -504,6 +504,7 @@ static int rcar_thermal_probe(struct platform_device *pdev) if (IS_ERR(priv->zone)) { dev_err(dev, "can't register thermal zone\n"); ret = PTR_ERR(priv->zone); + priv->zone = NULL; goto error_unregister; }