summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 13:54:31 +0400
committerMark Brown <broonie@linaro.org>2013-09-17 03:19:14 +0400
commit7cce62f3aa956a4ce170e53c98cc195b74aba4b4 (patch)
tree638eaf65849ca71aab8bb26326ffcdc59498a4e0
parent1e0d191f62c779cdd6953db2541b6b92969ce1bb (diff)
downloadlinux-7cce62f3aa956a4ce170e53c98cc195b74aba4b4.tar.xz
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.c1
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);