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:
parent
dcb8a8b1a6
commit
078a29da28
|
@ -520,8 +520,17 @@ static int mxcmci_probe(struct device_d *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static __maybe_unused struct of_device_id mxcmci_compatible[] = {
|
||||||
|
{
|
||||||
|
.compatible = "fsl,imx27-mmc",
|
||||||
|
}, {
|
||||||
|
/* sentinel */
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
static struct driver_d mxcmci_driver = {
|
static struct driver_d mxcmci_driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.probe = mxcmci_probe,
|
.probe = mxcmci_probe,
|
||||||
|
.of_compatible = DRV_OF_COMPAT(mxcmci_compatible),
|
||||||
};
|
};
|
||||||
device_platform_driver(mxcmci_driver);
|
device_platform_driver(mxcmci_driver);
|
||||||
|
|
Loading…
Reference in New Issue