diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 11:54:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-17 01:19:14 +0200 |
commit | 7cce62f3aa956a4ce170e53c98cc195b74aba4b4 (patch) | |
tree | 638eaf65849ca71aab8bb26326ffcdc59498a4e0 /drivers/spi/spi-dw-pci.c | |
parent | spi: designware: delete premature free_irq (diff) | |
download | linux-7cce62f3aa956a4ce170e53c98cc195b74aba4b4.tar.xz linux-7cce62f3aa956a4ce170e53c98cc195b74aba4b4.zip |
spi: dw-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: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-dw-pci.c')
-rw-r--r-- | drivers/spi/spi-dw-pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw-pci.c b/drivers/spi/spi-dw-pci.c index 6055c8d9fdd7..6a708620816a 100644 --- a/drivers/spi/spi-dw-pci.c +++ b/drivers/spi/spi-dw-pci.c @@ -109,7 +109,6 @@ static void spi_pci_remove(struct pci_dev *pdev) { struct dw_spi_pci *dwpci = pci_get_drvdata(pdev); - pci_set_drvdata(pdev, NULL); dw_spi_remove_host(&dwpci->dws); iounmap(dwpci->dws.regs); pci_release_region(pdev, 0); |