summaryrefslogtreecommitdiff
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-04-03 20:06:35 +0300
committerMark Brown <broonie@kernel.org>2024-04-15 14:00:33 +0300
commitdf3431fd379dcc3b231bd109a55948c27474478d (patch)
treeb14f794a863345d5c50ddac70890bc5bcfa3e94b /drivers/spi/spi.c
parent770e3da3fe7ee7ffca745b7ac300ce39fe40f465 (diff)
downloadlinux-df3431fd379dcc3b231bd109a55948c27474478d.tar.xz
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>
Diffstat (limited to 'drivers/spi/spi.c')
0 files changed, 0 insertions, 0 deletions