mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
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>
This commit is contained in:
parent
5da57c7ca9
commit
33aa27a09e
@ -1375,8 +1375,10 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev)
|
||||
type = (enum pxa_ssp_type)value;
|
||||
} else {
|
||||
ssp = pxa_ssp_request(pdev->id, pdev->name);
|
||||
if (ssp)
|
||||
if (ssp) {
|
||||
type = ssp->type;
|
||||
pxa_ssp_free(ssp);
|
||||
}
|
||||
}
|
||||
|
||||
/* Validate the SSP type correctness */
|
||||
|
Loading…
x
Reference in New Issue
Block a user