Commit 109744c7cff0320790f3afa60bebe05994be9ec3
Committed by
David S. Miller
1 parent
57c5bca9f4
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
drivers/atm/solos-pci.c
... | ... | @@ -1335,7 +1335,6 @@ |
1335 | 1335 | |
1336 | 1336 | out_unmap_both: |
1337 | 1337 | kfree(card->dma_bounce); |
1338 | - pci_set_drvdata(dev, NULL); | |
1339 | 1338 | pci_iounmap(dev, card->buffers); |
1340 | 1339 | out_unmap_config: |
1341 | 1340 | pci_iounmap(dev, card->config_regs); |
... | ... | @@ -1457,7 +1456,6 @@ |
1457 | 1456 | pci_release_regions(dev); |
1458 | 1457 | pci_disable_device(dev); |
1459 | 1458 | |
1460 | - pci_set_drvdata(dev, NULL); | |
1461 | 1459 | kfree(card); |
1462 | 1460 | } |
1463 | 1461 |