瀏覽代碼

spi/pxa2xx-pci: remove unnecessary assignment

There is no need to unset driver data pointer at removal stage.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Andy Shevchenko 11 年之前
父節點
當前提交
468e0f47ed
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/spi/spi-pxa2xx-pci.c

+ 0 - 1
drivers/spi/spi-pxa2xx-pci.c

@@ -123,7 +123,6 @@ static void pxa2xx_spi_pci_remove(struct pci_dev *dev)
 
 
 	platform_device_unregister(pdev);
 	platform_device_unregister(pdev);
 	clk_unregister(spi_pdata->ssp.clk);
 	clk_unregister(spi_pdata->ssp.clk);
-	pci_set_drvdata(dev, NULL);
 }
 }
 
 
 static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
 static const struct pci_device_id pxa2xx_spi_pci_devices[] = {