spi: remove unnecessary platform_set_drvdata()
[deliverable/linux.git] / drivers / spi / spi-pxa2xx.c
index f5d84d6f8222c4afc261f738daa695da332a46df..5a7fa2cd1efe7013fc945239d77ddd4d815d13a5 100644 (file)
@@ -1299,9 +1299,6 @@ static int pxa2xx_spi_remove(struct platform_device *pdev)
        /* Disconnect from the SPI framework */
        spi_unregister_master(drv_data->master);
 
-       /* Prevent double remove */
-       platform_set_drvdata(pdev, NULL);
-
        return 0;
 }
 
This page took 0.029687 seconds and 5 git commands to generate.