spi: pxa2xx: Reuse int_stop_and_reset() in couple of places
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Jul 2021 07:48:42 +0000 (10:48 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jul 2021 11:58:54 +0000 (12:58 +0100)
commit3bbdc083262dc082e5c8e7b0646faf8f4ef894dd
treeac4280603ec38abeb11b3faef60a9b457f3d204d
parentcdcb26ce747a5ec665a98fd6c303248a12418140
spi: pxa2xx: Reuse int_stop_and_reset() in couple of places

Reuse int_stop_and_reset() in couple of places.

While at it, change the order of the int_stop_and_reset() and pxa2xx_spi_off()
to be in align with the similar flow in int_error_stop().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210719074842.36060-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c