From: Alessandro Rubini Date: Sun, 27 May 2012 20:55:41 +0000 (+0200) Subject: gpio-sta2x11: don't use pdata if null X-Git-Tag: v3.5-rc7~34^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2070c85aa19f6c5bb3642a1429abf42f101e8d;p=pandora-kernel.git 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 Acked-by: Giancarlo Asnaghi Signed-off-by: Linus Walleij --- Reading git-diff-tree failed