From: Guenter Roeck Date: Mon, 12 Mar 2012 18:35:09 +0000 (-0700) Subject: Driver should not rely or depend on setting platform_drvdata to NULL X-Git-Tag: nct6775-v0.9~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=958843b2cb6c5eb2209fef87d8ac50d942452f78;p=groeck-nct6775 Driver should not rely or depend on setting platform_drvdata to NULL Signed-off-by: Guenter Roeck --- diff --git a/nct6775.c b/nct6775.c index a0f2e3c..09c03ab 100644 --- a/nct6775.c +++ b/nct6775.c @@ -2943,7 +2943,6 @@ static int __devinit nct6775_probe(struct platform_device *pdev) exit_remove: nct6775_device_remove_files(dev); exit_release: - platform_set_drvdata(pdev, NULL); release_region(res->start, IOREGION_LENGTH); exit: return err; @@ -2956,7 +2955,6 @@ static int __devexit nct6775_remove(struct platform_device *pdev) hwmon_device_unregister(data->hwmon_dev); nct6775_device_remove_files(&pdev->dev); release_region(data->addr, IOREGION_LENGTH); - platform_set_drvdata(pdev, NULL); return 0; }