pinctrl: mcp23s08: Improve error messaging in ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 28 Aug 2020 10:32:35 +0000 (13:32 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Aug 2020 14:41:15 +0000 (16:41 +0200)
commitebc2599144b610a7e6e967ee89a769d908a3eeef
treee4472a3d7b58dfae9933943d68ddc1d79cf818a3
parentd32f38f2a8fc498de8e160ab1f1acb42b64c73b9
pinctrl: mcp23s08: Improve error messaging in ->probe()

Print particular message in each of error case in the ->probe().
While here, use dev_err_probe() for that.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200828103235.78380-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c