mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mfd: mc34704: Add DT support
@ 2014-07-28 20:24 Markus Pargmann
  2014-07-29  6:22 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Pargmann @ 2014-07-28 20:24 UTC (permalink / raw)
  To: barebox

Add a compatible to this driver so it can be added through devicetree.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 drivers/mfd/mc34704.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mfd/mc34704.c b/drivers/mfd/mc34704.c
index 9afab07a2df5..3dc85f5474dd 100644
--- a/drivers/mfd/mc34704.c
+++ b/drivers/mfd/mc34704.c
@@ -123,9 +123,15 @@ static int mc34704_probe(struct device_d *dev)
 	return 0;
 }
 
+static __maybe_unused struct of_device_id mc34704_dt_ids[] = {
+	{ .compatible = "fsl,mc34704", },
+	{ }
+};
+
 static struct driver_d mc34704_driver = {
 	.name  = DRIVERNAME,
 	.probe = mc34704_probe,
+	.of_compatible = DRV_OF_COMPAT(mc34704_dt_ids),
 };
 
 static int mc34704_init(void)
-- 
2.0.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2014-07-29  6:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-28 20:24 [PATCH] mfd: mc34704: Add DT support Markus Pargmann
2014-07-29  6:22 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox