From 958843b2cb6c5eb2209fef87d8ac50d942452f78 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Mon, 12 Mar 2012 11:35:09 -0700 Subject: [PATCH] Driver should not rely or depend on setting platform_drvdata to NULL Signed-off-by: Guenter Roeck --- nct6775.c | 2 -- 1 file changed, 2 deletions(-) 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; } -- 2.39.5