]> Pileus Git - ~andy/linux/commit
gpio: twl4030: Fix passing of pdata in the device tree case
authorTony Lindgren <tony@atomide.com>
Mon, 18 Nov 2013 23:22:50 +0000 (15:22 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 18 Nov 2013 23:33:16 +0000 (15:33 -0800)
commitfd3a5d5b8386c9a29116e048b5e4ee86545ba012
tree55f4d1afff917165589c7102e11643e3eb24aed2
parent0b2aa8bed3e13892fcac77e4f50ec6e80125469d
gpio: twl4030: Fix passing of pdata in the device tree case

We still have some legacy code needing the callback functions
that won't work properly without platform data. To use platform
data for twl4030-gpio, we need to not trash the possible data.

Cc: linux-gpio@vger.kernel.org
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
[tony@atomide.com: folded in fix from Fengguang to use struct assignment]
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/gpio/gpio-twl4030.c