gpio: generic: use error pointers
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 30 Sep 2015 21:52:36 +0000 (23:52 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Oct 2015 07:16:28 +0000 (09:16 +0200)
commit8d2402605b85be860808961cd82fdc4bd8bc1704
tree11d55054b6ba35fac6e1bd8f03f2a78c9a7a3c05
parent43960b4731d3450fe82105c40ee19d487622e427
gpio: generic: use error pointers

Use the ERRPTR standard way to return an error code in a pointer
thus simplifiying the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-generic.c