diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-10 14:41:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-11 10:35:06 +0200 |
commit | 0c8ccd8b267fc735e4621774ce62728f27d42863 (patch) | |
tree | 52a3a57e34263469bb7688899824467f9b985a3c /drivers/spi/spi-pxa2xx-dma.c | |
parent | spi: pxa2xx: Reuse int_error_stop() in pxa2xx_spi_slave_abort() (diff) | |
download | linux-0c8ccd8b267fc735e4621774ce62728f27d42863.tar.xz linux-0c8ccd8b267fc735e4621774ce62728f27d42863.zip |
spi: pxa2xx: Use pxa_ssp_enable()/pxa_ssp_disable() in the driver
There are few places that repeat the logic of pxa_ssp_enable() and
pxa_ssp_disable(). Use them instead of open coded variants.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210510124134.24638-10-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx-dma.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx-dma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-pxa2xx-dma.c b/drivers/spi/spi-pxa2xx-dma.c index e00dbadd39ec..5ca01ad7f460 100644 --- a/drivers/spi/spi-pxa2xx-dma.c +++ b/drivers/spi/spi-pxa2xx-dma.c @@ -50,9 +50,7 @@ static void pxa2xx_spi_dma_transfer_complete(struct driver_data *drv_data, if (error) { /* In case we got an error we disable the SSP now */ - pxa2xx_spi_write(drv_data, SSCR0, - pxa2xx_spi_read(drv_data, SSCR0) - & ~SSCR0_SSE); + pxa_ssp_disable(drv_data->ssp); msg->status = -EIO; } |