* [PATCH 2/3] mfd: link vx855 GPIO cell with device tree
@ 2011-09-21 12:02 Daniel Drake
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Drake @ 2011-09-21 12:02 UTC (permalink / raw)
To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ, sameo-VuQAYsv1563Yd54FQh9/CA
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
dilinger-pFFUokh25LWsTnJN9+BGXg
The child driver will then pass the handle to gpiolib, which
enables device-tree-probed gpio-leds and more.
Signed-off-by: Daniel Drake <dsd-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
---
drivers/mfd/vx855.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/vx855.c b/drivers/mfd/vx855.c
index d698703..6466c21 100644
--- a/drivers/mfd/vx855.c
+++ b/drivers/mfd/vx855.c
@@ -101,6 +101,11 @@ static __devinit int vx855_probe(struct pci_dev *pdev,
vx855_gpio_resources[1].start = gpio_io_offset + VX855_PMIO_R_GPO;
vx855_gpio_resources[1].end = vx855_gpio_resources[1].start + 3;
+#ifdef CONFIG_OF_GPIO
+ vx855_cells[0].of_node = of_find_compatible_node(NULL, NULL,
+ "via,vx855-gpio");
+#endif
+
ret = mfd_add_devices(&pdev->dev, -1, vx855_cells, ARRAY_SIZE(vx855_cells),
NULL, 0);
--
1.7.6.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/3] mfd: link vx855 GPIO cell with device tree
@ 2011-09-21 12:02 Daniel Drake
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Drake @ 2011-09-21 12:02 UTC (permalink / raw)
To: grant.likely, sameo; +Cc: linux-kernel, devicetree-discuss, dilinger
The child driver will then pass the handle to gpiolib, which
enables device-tree-probed gpio-leds and more.
Signed-off-by: Daniel Drake <dsd@laptop.org>
---
drivers/mfd/vx855.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/vx855.c b/drivers/mfd/vx855.c
index d698703..6466c21 100644
--- a/drivers/mfd/vx855.c
+++ b/drivers/mfd/vx855.c
@@ -101,6 +101,11 @@ static __devinit int vx855_probe(struct pci_dev *pdev,
vx855_gpio_resources[1].start = gpio_io_offset + VX855_PMIO_R_GPO;
vx855_gpio_resources[1].end = vx855_gpio_resources[1].start + 3;
+#ifdef CONFIG_OF_GPIO
+ vx855_cells[0].of_node = of_find_compatible_node(NULL, NULL,
+ "via,vx855-gpio");
+#endif
+
ret = mfd_add_devices(&pdev->dev, -1, vx855_cells, ARRAY_SIZE(vx855_cells),
NULL, 0);
--
1.7.6.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-21 12:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-21 12:02 [PATCH 2/3] mfd: link vx855 GPIO cell with device tree Daniel Drake
-- strict thread matches above, loose matches on Subject: below --
2011-09-21 12:02 Daniel Drake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).