aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/stmpe.c
diff options
context:
space:
mode:
authorVipul Kumar Samar <vipulkumar.samar@st.com>2012-11-26 06:36:51 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-12-01 11:45:16 -0500
commit86605cfe8c7c166999bc7476b17940c68bf2f8b7 (patch)
tree702c2b7e6c60f261aa353995c1792f1cb2eb6335 /drivers/mfd/stmpe.c
parent8618b3b47c4590baf4ef3f241616914f4bb2a8a6 (diff)
gpio: stmpe: Add DT support for stmpe gpio
This patch allows the STMPE GPIO driver to be successfully probed and initialised when Device Tree support is enabled. Bindings are mentioned in Documentation too. Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/mfd/stmpe.c')
-rw-r--r--drivers/mfd/stmpe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index c94f521f392c..79e88d1fd99a 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -294,12 +294,14 @@ static struct resource stmpe_gpio_resources[] = {
294 294
295static struct mfd_cell stmpe_gpio_cell = { 295static struct mfd_cell stmpe_gpio_cell = {
296 .name = "stmpe-gpio", 296 .name = "stmpe-gpio",
297 .of_compatible = "st,stmpe-gpio",
297 .resources = stmpe_gpio_resources, 298 .resources = stmpe_gpio_resources,
298 .num_resources = ARRAY_SIZE(stmpe_gpio_resources), 299 .num_resources = ARRAY_SIZE(stmpe_gpio_resources),
299}; 300};
300 301
301static struct mfd_cell stmpe_gpio_cell_noirq = { 302static struct mfd_cell stmpe_gpio_cell_noirq = {
302 .name = "stmpe-gpio", 303 .name = "stmpe-gpio",
304 .of_compatible = "st,stmpe-gpio",
303 /* gpio cell resources consist of an irq only so no resources here */ 305 /* gpio cell resources consist of an irq only so no resources here */
304}; 306};
305 307