|
@@ -1414,8 +1414,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
|
|
|
- /* Allocate master with space for drv_data and null dma buffer */
|
|
|
- master = spi_alloc_master(dev, sizeof(struct driver_data) + 16);
|
|
|
+ master = spi_alloc_master(dev, sizeof(struct driver_data));
|
|
|
if (!master) {
|
|
|
dev_err(&pdev->dev, "cannot alloc spi_master\n");
|
|
|
pxa_ssp_free(ssp);
|
|
@@ -1442,7 +1441,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
|
|
|
master->auto_runtime_pm = true;
|
|
|
|
|
|
drv_data->ssp_type = ssp->type;
|
|
|
- drv_data->null_dma_buf = (u32 *)PTR_ALIGN(&drv_data[1], DMA_ALIGNMENT);
|
|
|
|
|
|
drv_data->ioaddr = ssp->mmio_base;
|
|
|
drv_data->ssdr_physical = ssp->phys_base + SSDR;
|