From: Jingoo Han Date: Tue, 10 Sep 2013 09:54:31 +0000 (+0900) Subject: spi: dw-pci: remove unnecessary pci_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7cce62f3aa956a4ce170e53c98cc195b74aba4b4;p=linux-beck.git 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 Signed-off-by: Mark Brown --- 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);