From: Srinivas Kandagatla <[email protected]>
This patch uses of_simple_module_id_table macro to replace code like:
static struct of_device_id xxx_of_match[] = {
{ .compatible = "yyy,xxx" },
{ },
};
MODULE_DEVICE_TABLE(of, xxx_of_match);
with
of_simple_module_id_table(xxx_of_match, "yyy,zzz");
Signed-off-by: Srinivas Kandagatla <[email protected]>
---
drivers/mmc/host/dw_mmc-exynos.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
index 660bbc5..1e9596a 100644
--- a/drivers/mmc/host/dw_mmc-exynos.c
+++ b/drivers/mmc/host/dw_mmc-exynos.c
@@ -218,12 +218,7 @@ static struct dw_mci_drv_data exynos5250_drv_data = {
.setup_bus = dw_mci_exynos_setup_bus,
};
-static const struct of_device_id dw_mci_exynos_match[] = {
- { .compatible = "samsung,exynos5250-dw-mshc",
- .data = (void *)&exynos5250_drv_data, },
- {},
-};
-MODULE_DEVICE_TABLE(of, dw_mci_pltfm_match);
+of_simple_module_id_table(dw_mci_pltfm_match, "samsung,exynos5250-dw-mshc");
int dw_mci_exynos_probe(struct platform_device *pdev)
{
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html