9
0
Fork 0

mci-bcm2835: enable devicetree probing

Signed-off-by: Enrico Joerns <ejo@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Enrico Joerns 2017-03-01 15:31:34 +01:00 committed by Sascha Hauer
parent 6b4f5b6448
commit dc9ef03ecb
1 changed files with 9 additions and 0 deletions

View File

@ -543,9 +543,18 @@ static int bcm2835_mci_probe(struct device_d *hw_dev)
return mci_register(&host->mci);
}
static __maybe_unused struct of_device_id bcm2835_mci_compatible[] = {
{
.compatible = "brcm,bcm2835-sdhci",
}, {
/* sentinel */
}
};
static struct driver_d bcm2835_mci_driver = {
.name = "bcm2835_mci",
.probe = bcm2835_mci_probe,
.of_compatible = DRV_OF_COMPAT(bcm2835_mci_compatible),
};
static int bcm2835_mci_add(void)