summaryrefslogtreecommitdiff
path: root/drivers/net/can
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 20:10:35 +0900
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-09-21 15:43:16 +0200
commitaa86858c356beb72af86107612ac854c0150d6db (patch)
tree88ff2d9e6a47b13c484b522de7f1c799d48bd705 /drivers/net/can
parent5fabc336fead7d62b22b1a59e45efd7adc5d2ea7 (diff)
can: pch_can: 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 <jg1.han@samsung.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/pch_can.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c
index 5c314a961970..5f0e9b3bfa7b 100644
--- a/drivers/net/can/pch_can.c
+++ b/drivers/net/can/pch_can.c
@@ -964,7 +964,6 @@ static void pch_can_remove(struct pci_dev *pdev)
pci_disable_msi(priv->dev);
pci_release_regions(pdev);
pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
pch_can_reset(priv);
pci_iounmap(pdev, priv->regs);
free_candev(priv->ndev);