spi: pxa2xx: Return error codes from pxa2xx_spi_init_pdata()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Feb 2020 15:45:55 +0000 (17:45 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2020 22:19:27 +0000 (22:19 +0000)
commit14af1df3b03309f6204661e12c40cdf71bc8f773
treedb48e662fbf92e8058c1cf1fb8c07b37da3b856d
parentc046f8fd83a902866ba3b122e9f57ca1c7de898c
spi: pxa2xx: Return error codes from pxa2xx_spi_init_pdata()

For better understanding what's going on on error path,
return distinguished error codes instead of NULL pointer.

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