aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 07:10:35 -0400
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-09-21 09:43:16 -0400
commitaa86858c356beb72af86107612ac854c0150d6db (patch)
tree88ff2d9e6a47b13c484b522de7f1c799d48bd705
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>
-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)
964 pci_disable_msi(priv->dev); 964 pci_disable_msi(priv->dev);
965 pci_release_regions(pdev); 965 pci_release_regions(pdev);
966 pci_disable_device(pdev); 966 pci_disable_device(pdev);
967 pci_set_drvdata(pdev, NULL);
968 pch_can_reset(priv); 967 pch_can_reset(priv);
969 pci_iounmap(pdev, priv->regs); 968 pci_iounmap(pdev, priv->regs);
970 free_candev(priv->ndev); 969 free_candev(priv->ndev);