aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-09 22:52:14 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-10 22:31:33 -0500
commit109744c7cff0320790f3afa60bebe05994be9ec3 (patch)
tree8a0a24243ac2e6e0a78a22296e94196631940a5d /drivers/atm
parent57c5bca9f4f8d0be378a115c5ed939bd43932f8e (diff)
atm: solos-pci: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/solos-pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
index 32784d18d1f7..e3fb496c7163 100644
--- a/drivers/atm/solos-pci.c
+++ b/drivers/atm/solos-pci.c
@@ -1335,7 +1335,6 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id)
1335 1335
1336 out_unmap_both: 1336 out_unmap_both:
1337 kfree(card->dma_bounce); 1337 kfree(card->dma_bounce);
1338 pci_set_drvdata(dev, NULL);
1339 pci_iounmap(dev, card->buffers); 1338 pci_iounmap(dev, card->buffers);
1340 out_unmap_config: 1339 out_unmap_config:
1341 pci_iounmap(dev, card->config_regs); 1340 pci_iounmap(dev, card->config_regs);
@@ -1457,7 +1456,6 @@ static void fpga_remove(struct pci_dev *dev)
1457 pci_release_regions(dev); 1456 pci_release_regions(dev);
1458 pci_disable_device(dev); 1457 pci_disable_device(dev);
1459 1458
1460 pci_set_drvdata(dev, NULL);
1461 kfree(card); 1459 kfree(card);
1462} 1460}
1463 1461