[PATCH] pinctrl: zynq: change error code for pinctrl_register failure

Linus Walleij linus.walleij at linaro.org
Mon Jun 1 08:00:53 PDT 2015


On Tue, May 26, 2015 at 8:37 PM, Sören Brinkmann
<soren.brinkmann at xilinx.com> wrote:
> On Tue, 2015-05-26 at 10:12AM +0200, Arnd Bergmann wrote:

>> Could we add a pinctrl_register_reason() variant that returns a meaningful
>> error code as ERR_PTR?
>
> I agree with Arnd. As long as we don't get a precise error code we can
> just keep the current one.

pinctrl_register_cause() please.

Cause-and-effect, not "age of reason".

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list