[PATCH 21/22] mci: imx: Add devicetree probe support

Sascha Hauer s.hauer at pengutronix.de
Fri Jan 17 10:03:31 EST 2014


Only simple probing, no properties supported yet.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mci/imx.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/mci/imx.c b/drivers/mci/imx.c
index aea78c7..6992177 100644
--- a/drivers/mci/imx.c
+++ b/drivers/mci/imx.c
@@ -520,8 +520,17 @@ static int mxcmci_probe(struct device_d *dev)
 	return 0;
 }
 
+static __maybe_unused struct of_device_id mxcmci_compatible[] = {
+	{
+		.compatible = "fsl,imx27-mmc",
+	}, {
+		/* sentinel */
+	}
+};
+
 static struct driver_d mxcmci_driver = {
         .name  = DRIVER_NAME,
         .probe = mxcmci_probe,
+	.of_compatible = DRV_OF_COMPAT(mxcmci_compatible),
 };
 device_platform_driver(mxcmci_driver);
-- 
1.8.5.2




More information about the barebox mailing list