spi: pxa2xx: Move number of CS pins validation out of condition
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 3 Apr 2024 17:06:35 +0000 (20:06 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 15 Apr 2024 11:00:33 +0000 (20:00 +0900)
commitdf3431fd379dcc3b231bd109a55948c27474478d
treeb14f794a863345d5c50ddac70890bc5bcfa3e94b
parent770e3da3fe7ee7ffca745b7ac300ce39fe40f465
spi: pxa2xx: Move number of CS pins validation out of condition

There is no need to allocate chip_data and then validate number of
CS pins as it will have the same effect. Hence move number of CS pins
validation out of condition in setup().

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