spi: pxa2xx: Call pxa_ssp_free() after getting the SSP type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 2 Apr 2024 14:45:23 +0000 (17:45 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2024 14:55:36 +0000 (15:55 +0100)
commit33aa27a09e9df5860fe495032a067504d025db77
tree55095f9b055d3ad0f97c8798464e0a5c2e6bbf0f
parent5da57c7ca9eabccd89087ed2fdac31a79b1504d8
spi: pxa2xx: Call pxa_ssp_free() after getting the SSP type

pxa_ssp_request() implies a reference counting, hence the pxa_ssp_free()
must be called when we are done. Add missed call.

Fixes: bb77c99ee6d3 ("spi: pxa2xx: Skip SSP initialization if it's done elsewhere")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240402144523.3402063-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c