pinctrl: mcp23s08: Print error message when regmap init fails
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 9 Oct 2020 18:08:56 +0000 (21:08 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 5 Nov 2020 10:30:31 +0000 (11:30 +0100)
commita835d3a114ab0dc2f0d8c6963c3f53734b1c5965
tree6cc3da6d47697f01561ddc87164541df73682189
parent2b12c13637134897ba320bd8906a8d918ee7069b
pinctrl: mcp23s08: Print error message when regmap init fails

It is useful for debugging to have the error message printed
when regmap initialisation fails. Add it to the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Martin Hundebøll <martin@geanix.com>
Link: https://lore.kernel.org/r/20201009180856.4738-2-andriy.shevchenko@linux.intel.com
Tested-by: Jan Kundrát <jan.kundrat@cesnet.cz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08_spi.c