From: Andy Shevchenko Date: Tue, 19 Aug 2014 17:29:20 +0000 (+0300) Subject: spi/pxa2xx-pci: remove unnecessary assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=468e0f47ed87350408ddac0e942fbf9a723408f9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git spi/pxa2xx-pci: remove unnecessary assignment There is no need to unset driver data pointer at removal stage. Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c index 20ebbc764693..536c863bebf1 100644 --- a/drivers/spi/spi-pxa2xx-pci.c +++ b/drivers/spi/spi-pxa2xx-pci.c @@ -123,7 +123,6 @@ static void pxa2xx_spi_pci_remove(struct pci_dev *dev) platform_device_unregister(pdev); clk_unregister(spi_pdata->ssp.clk); - pci_set_drvdata(dev, NULL); } static const struct pci_device_id pxa2xx_spi_pci_devices[] = {