diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@googlemail.com> | 2012-07-31 10:12:59 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 13:58:15 -0400 |
commit | 4ee7ed0de9929f6f194d7a0ae867371ea47866fe (patch) | |
tree | 126a3a3be785c24c969d23410b58a31e99152383 /drivers | |
parent | 164378efe7612ae1506d1a3b21fd37abf9909a5c (diff) | |
download | linux-stable-4ee7ed0de9929f6f194d7a0ae867371ea47866fe.tar.gz linux-stable-4ee7ed0de9929f6f194d7a0ae867371ea47866fe.tar.bz2 linux-stable-4ee7ed0de9929f6f194d7a0ae867371ea47866fe.zip |
mmc: sdhci-dove: DT support for sdhci-dove
This patch adds device tree support and binding documentation for
sdhci-dove.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@googlemail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/sdhci-dove.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci-dove.c index a6e53a1ebb08..90140eb03e36 100644 --- a/drivers/mmc/host/sdhci-dove.c +++ b/drivers/mmc/host/sdhci-dove.c @@ -24,6 +24,7 @@ #include <linux/err.h> #include <linux/module.h> #include <linux/mmc/host.h> +#include <linux/of.h> #include "sdhci-pltfm.h" @@ -126,11 +127,18 @@ static int __devexit sdhci_dove_remove(struct platform_device *pdev) return sdhci_pltfm_unregister(pdev); } +static const struct of_device_id sdhci_dove_of_match_table[] __devinitdata = { + { .compatible = "marvell,dove-sdhci", }, + {} +}; +MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table); + static struct platform_driver sdhci_dove_driver = { .driver = { .name = "sdhci-dove", .owner = THIS_MODULE, .pm = SDHCI_PLTFM_PMOPS, + .of_match_table = of_match_ptr(sdhci_dove_of_match_table), }, .probe = sdhci_dove_probe, .remove = __devexit_p(sdhci_dove_remove), |