]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Kirkwood: fix unused mvsdio gpio pins
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 23 Mar 2013 12:56:58 +0000 (13:56 +0100)
committerJason Cooper <jason@lakedaemon.net>
Thu, 28 Mar 2013 16:56:31 +0000 (16:56 +0000)
commite25a558136d4ff1204b109c54a773d9813c3b67e
tree260bb5aa3ed8f594cf00faefcf54e2cdec9375c1
parenta05cc292d4a748e806a57a466a32cd05fec94531
ARM: Kirkwood: fix unused mvsdio gpio pins

mvsdio_platform_data allows to pass card detect and write protect gpio
numbers to the driver. Some kirkwood boards don't use both pins as they
are not connected, and don't set the corresponding value in platform_data.

This will leave the unset values in platform_data initialized as 0, which
is in fact a valid gpio pin. mvsdio will grab that pin and configure it as
gpio, which in turn breaks nand controller as mpp0 also carries nand_io2.

This patch fixes the above by initializing unused gpio functions in the
platform_data with an invalid (-1) value.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Reported-by: Soeren Moch <smoch@web.de>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-kirkwood/guruplug-setup.c
arch/arm/mach-kirkwood/openrd-setup.c
arch/arm/mach-kirkwood/rd88f6281-setup.c