diff options
-rw-r--r-- | drivers/spi/pxa2xx_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/pxa2xx_spi.c b/drivers/spi/pxa2xx_spi.c index 6104f461a3cd..d0fc4ca2f656 100644 --- a/drivers/spi/pxa2xx_spi.c +++ b/drivers/spi/pxa2xx_spi.c | |||
@@ -1561,11 +1561,12 @@ out_error_master_alloc: | |||
1561 | static int pxa2xx_spi_remove(struct platform_device *pdev) | 1561 | static int pxa2xx_spi_remove(struct platform_device *pdev) |
1562 | { | 1562 | { |
1563 | struct driver_data *drv_data = platform_get_drvdata(pdev); | 1563 | struct driver_data *drv_data = platform_get_drvdata(pdev); |
1564 | struct ssp_device *ssp = drv_data->ssp; | 1564 | struct ssp_device *ssp; |
1565 | int status = 0; | 1565 | int status = 0; |
1566 | 1566 | ||
1567 | if (!drv_data) | 1567 | if (!drv_data) |
1568 | return 0; | 1568 | return 0; |
1569 | ssp = drv_data->ssp; | ||
1569 | 1570 | ||
1570 | /* Remove the queue */ | 1571 | /* Remove the queue */ |
1571 | status = destroy_queue(drv_data); | 1572 | status = destroy_queue(drv_data); |