mmc: omap: Add devicetree support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
599e61ebd9
commit
03d601d58f
|
@ -640,9 +640,22 @@ static struct platform_device_id omap_mmc_ids[] = {
|
|||
},
|
||||
};
|
||||
|
||||
static __maybe_unused struct of_device_id omap_mmc_dt_ids[] = {
|
||||
{
|
||||
.compatible = "ti,omap3-hsmmc",
|
||||
.data = (unsigned long)&omap3_data,
|
||||
}, {
|
||||
.compatible = "ti,omap4-hsmmc",
|
||||
.data = (unsigned long)&omap4_data,
|
||||
}, {
|
||||
/* sentinel */
|
||||
}
|
||||
};
|
||||
|
||||
static struct driver_d omap_mmc_driver = {
|
||||
.name = "omap-hsmmc",
|
||||
.probe = omap_mmc_probe,
|
||||
.id_table = omap_mmc_ids,
|
||||
.of_compatible = DRV_OF_COMPAT(omap_mmc_dt_ids),
|
||||
};
|
||||
device_platform_driver(omap_mmc_driver);
|
||||
|
|
Loading…
Reference in New Issue