pinctrl: samsung: Fix samsung_pinctrl_create_functions return value
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 19 Jan 2017 13:48:46 +0000 (14:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Jan 2017 09:05:54 +0000 (10:05 +0100)
commit1f7b8eae5c16e6b16c6467ac8e96d0af9c9de81e
treed7a9a0454e3ac94fbedb0659c73ebdda0de384a7
parentfa5c0f46e2b9a1793313272fd19778fa2db92bf4
pinctrl: samsung: Fix samsung_pinctrl_create_functions return value

Return proper error code in case of memory allocation failure.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/samsung/pinctrl-samsung.c