OSDN Git Service

spi: pxa2xx: Use one point of return when ->probe() fails
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Apr 2021 18:24:28 +0000 (21:24 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 12:17:09 +0000 (13:17 +0100)
commitf2eed8caa336e31d672804a8725dadba0415f19d
tree5676594ea724ab74887cb1053522d4287d5ae330
parentccef8441fb2d352fa982f6607f471cdd17b30741
spi: pxa2xx: Use one point of return when ->probe() fails

When we can't allocate SPI controller, jump to the error path rather than
return locally.

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