diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-11-25 04:37:24 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-05 20:56:39 +0100 |
commit | 0a7a109e134c619245e6e77dd93260fa0b427684 (patch) | |
tree | 6be7245a8f81c2b2ec1d186f88d2f74da3259e45 /drivers/bcma | |
parent | wireless: libertas: remove unnecessary spi_set_drvdata() (diff) | |
download | linux-0a7a109e134c619245e6e77dd93260fa0b427684.tar.xz linux-0a7a109e134c619245e6e77dd93260fa0b427684.zip |
bcma: 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: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/host_pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c index 6fb98b53533f..12a4ff751359 100644 --- a/drivers/bcma/host_pci.c +++ b/drivers/bcma/host_pci.c @@ -238,7 +238,6 @@ static void bcma_host_pci_remove(struct pci_dev *dev) pci_release_regions(dev); pci_disable_device(dev); kfree(bus); - pci_set_drvdata(dev, NULL); } #ifdef CONFIG_PM_SLEEP |