Jingoo Han wrote: > 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 <jg1.han@xxxxxxxxxxx> Acked-by: Clemens Ladisch <clemens@xxxxxxxxxx> > --- > drivers/hwmon/k10temp.c | 1 - > 1 file changed, 1 deletion(-) > > 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) = { _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors