pinctrl: qcom: qdf2xxx: improve error checking and reporting
authorTimur Tabi <timur@codeaurora.org>
Tue, 10 Nov 2015 15:57:10 +0000 (09:57 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Dec 2015 08:59:02 +0000 (09:59 +0100)
commitbeee39099b9041c8bcb50e771d0cc6aea4e79e45
treeb461e9a3029a7667c979c72936ea9211a3e276fe
parent57b588c950b7e04e0f22393ad439299ba4fda9c3
pinctrl: qcom: qdf2xxx: improve error checking and reporting

The driver doesn't report an error message if the ACPI tables are missing
the num-gpios property (which indicates how many GPIOs there are on this
SOC), and it didn't check to ensure that the mallocs didn't fail.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Björn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-qdf2xxx.c