From: Jingoo Han Date: Thu, 12 Sep 2013 06:46:39 +0000 (+0900) Subject: hwmon: (k10temp) remove unnecessary pci_set_drvdata() X-Git-Tag: upstream/snapshot3+hdmi~4304^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b77f766f3ef9875e2bb0035c9b89b4f9469b78d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git hwmon: (k10temp) remove unnecessary pci_set_drvdata() The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Acked-by: Clemens Ladisch Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index e633856..d65f3fd 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -202,7 +202,6 @@ static void k10temp_remove(struct pci_dev *pdev) &sensor_dev_attr_temp1_crit.dev_attr); device_remove_file(&pdev->dev, &sensor_dev_attr_temp1_crit_hyst.dev_attr); - pci_set_drvdata(pdev, NULL); } static DEFINE_PCI_DEVICE_TABLE(k10temp_id_table) = {