diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 18:54:31 +0900 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-17 00:19:14 +0100 |
commit | 7cce62f3aa956a4ce170e53c98cc195b74aba4b4 (patch) | |
tree | 638eaf65849ca71aab8bb26326ffcdc59498a4e0 | |
parent | 1e0d191f62c779cdd6953db2541b6b92969ce1bb (diff) | |
download | op-kernel-dev-7cce62f3aa956a4ce170e53c98cc195b74aba4b4.zip op-kernel-dev-7cce62f3aa956a4ce170e53c98cc195b74aba4b4.tar.gz |
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>
-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 6055c8d..6a70862 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); |