linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] cbus: add of_match_table
@ 2011-10-17 20:50 Felipe Balbi
  2011-10-17 20:50 ` [PATCH 2/4] cbus: retu: no need to pass devid via pdata Felipe Balbi
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Felipe Balbi @ 2011-10-17 20:50 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Linux OMAP Mailing List, Felipe Balbi

then we can make DeviceTree conversion happen.

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
 drivers/cbus/retu.c  |    9 +++++++++
 drivers/cbus/tahvo.c |   10 ++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/drivers/cbus/retu.c b/drivers/cbus/retu.c
index 35bcb50..464fc0c 100644
--- a/drivers/cbus/retu.c
+++ b/drivers/cbus/retu.c
@@ -522,11 +522,20 @@ static int __devexit retu_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct of_device_id retu_match_table[] __devinitconst = {
+	{
+		.compatible = "nokia,retu",
+	},
+	{},
+};
+MODULE_DEVICE_TABLE(of, retu_match);
+
 static struct platform_driver retu_driver = {
 	.probe		= retu_probe,
 	.remove		= __devexit_p(retu_remove),
 	.driver		= {
 		.name	= "retu",
+		.of_match_table = retu_match_table,
 	},
 };
 
diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c
index 6119d19..0387721 100644
--- a/drivers/cbus/tahvo.c
+++ b/drivers/cbus/tahvo.c
@@ -395,11 +395,21 @@ static int __devexit tahvo_remove(struct platform_device *pdev)
 	return 0;
 }
 
+
+static const struct of_device_id tahvo_match_table[] __devinitconst = {
+	{
+		.compatible = "nokia,tahvo",
+	},
+	{},
+};
+MODULE_DEVICE_TABLE(of, tahvo_match);
+
 static struct platform_driver tahvo_driver = {
 	.probe		= tahvo_probe,
 	.remove		= __devexit_p(tahvo_remove),
 	.driver		= {
 		.name	= "tahvo",
+		.of_match_table = tahvo_match_table,
 	},
 };
 
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-04 12:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 20:50 [PATCH 1/4] cbus: add of_match_table Felipe Balbi
2011-10-17 20:50 ` [PATCH 2/4] cbus: retu: no need to pass devid via pdata Felipe Balbi
2011-10-17 20:50 ` [PATCH 3/4] cbus: move device IDs to local header Felipe Balbi
2011-10-17 20:50 ` [PATCH 4/4] cbus: retu: drop useless platform_data Felipe Balbi
2011-11-03 21:45 ` [PATCH 1/4] cbus: add of_match_table Tony Lindgren
2011-11-04  9:13   ` Felipe Balbi
2011-11-04 12:42     ` Cousson, Benoit

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).