]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/spi/pxa2xx_spi.c
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
[linux-2.6-omap-h63xx.git] / drivers / spi / pxa2xx_spi.c
index 6104f461a3cdf564e6476c8e49a6dd69a851052d..d0fc4ca2f656abb56d263284bde5a311ff2e6acd 100644 (file)
@@ -1561,11 +1561,12 @@ out_error_master_alloc:
 static int pxa2xx_spi_remove(struct platform_device *pdev)
 {
        struct driver_data *drv_data = platform_get_drvdata(pdev);
-       struct ssp_device *ssp = drv_data->ssp;
+       struct ssp_device *ssp;
        int status = 0;
 
        if (!drv_data)
                return 0;
+       ssp = drv_data->ssp;
 
        /* Remove the queue */
        status = destroy_queue(drv_data);