]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-sta2x11: don't use pdata if null
authorAlessandro Rubini <rubini@gnudd.com>
Sun, 27 May 2012 20:55:41 +0000 (22:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 5 Jul 2012 12:48:49 +0000 (14:48 +0200)
commitf098e2aebeee7de0c673649108b850b19a1f4b64
tree453583479f2db4976391fa0138706c83e17f71d9
parent3b15e0f7495f5dcfda3ad9d09b0aa6894191804f
gpio-sta2x11: don't use pdata if null

If there is no platform data available, the driver shouldn't use the
pointer or it will oops.  Since things will mostly work nonetheless,
(the BIOS may have set up the pins properly), I'd better not fail the
probe even in this case.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sta2x11.c