]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
spi: dw-pci: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 10 Sep 2013 09:54:31 +0000 (18:54 +0900)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:19:14 +0000 (00:19 +0100)
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>
drivers/spi/spi-dw-pci.c

index 6055c8d9fdd7a44622d9c5c1b27f68ffd4dec50c..6a708620816aae9be806b1e68e297e1386bc927a 100644 (file)
@@ -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);