diff options
author | Enrico Joerns <ejo@pengutronix.de> | 2017-03-01 15:31:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-02 09:11:24 +0100 |
commit | dc9ef03ecbd81ba78cf825dc1399406eab8c51e7 (patch) | |
tree | 45854163fd884a4f4c30bc5a38f41b8dfd3852dc | |
parent | 6b4f5b64486b58316ad4cf15f9907ead711f7bc9 (diff) | |
download | barebox-dc9ef03ecbd81ba78cf825dc1399406eab8c51e7.tar.gz barebox-dc9ef03ecbd81ba78cf825dc1399406eab8c51e7.tar.xz |
mci-bcm2835: enable devicetree probing
Signed-off-by: Enrico Joerns <ejo@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mci/mci-bcm2835.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c index c7a8cf972a..daf771934a 100644 --- a/drivers/mci/mci-bcm2835.c +++ b/drivers/mci/mci-bcm2835.c @@ -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) |