9
0
Fork 0

mci: imx: Add devicetree probe support

Only simple probing, no properties supported yet.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-07-11 18:56:42 +02:00
parent dcb8a8b1a6
commit 078a29da28
1 changed files with 9 additions and 0 deletions

View File

@ -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);