X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fthermal%2Frcar_thermal.c;h=5f817923f374f5f08412bda03876c831da68b697;hb=2ab78a724b1fd885b65199707b8e053677745457;hp=71a339271fa5fe9d796d86be9077ebbc13d4f0dc;hpb=26124f4b773078bce9d240be8c3f87217a90e80b;p=karo-tx-linux.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; }