Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: pxa2xx: Pass driver data instead of ioaddr to wait_ssp_rx_stall()

Pass pointer to struct driver_data instead of ioaddr to wait_ssp_rx_stall()
for preparing to register access macro cleanup.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jarkko Nikula and committed by
Mark Brown
8e8dd9fb c4827bb8

+3 -3
+3 -3
drivers/spi/spi-pxa2xx-pxadma.c
··· 118 118 drv_data->dma_mapped = 0; 119 119 } 120 120 121 - static int wait_ssp_rx_stall(void const __iomem *ioaddr) 121 + static int wait_ssp_rx_stall(struct driver_data *drv_data) 122 122 { 123 123 unsigned long limit = loops_per_jiffy << 1; 124 124 125 - while ((read_SSSR(ioaddr) & SSSR_BSY) && --limit) 125 + while ((read_SSSR(drv_data->ioaddr) & SSSR_BSY) && --limit) 126 126 cpu_relax(); 127 127 128 128 return limit; ··· 228 228 && (drv_data->ssp_type == PXA25x_SSP)) { 229 229 230 230 /* Wait for rx to stall */ 231 - if (wait_ssp_rx_stall(drv_data->ioaddr) == 0) 231 + if (wait_ssp_rx_stall(drv_data) == 0) 232 232 dev_err(&drv_data->pdev->dev, 233 233 "dma_handler: ssp rx stall failed\n"); 234 234