Skip to content
Commit 2e2070c8 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Linus Walleij
Browse files

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: default avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: default avatarGiancarlo Asnaghi <giancarlo.asnaghi@st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6887a413
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment