[RFC PATCH 3.7.0-rc4 2/4] mm:exynos: use of_simple_module_id_table macro.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx>

This patch uses of_simple_module_id_table macro to replace code like:

#ifdef CONFIG_OF
    static struct of_device_id xxx_of_match[] = {
        { .compatible = "yyy,xxx" },
        { },
    };
    MODULE_DEVICE_TABLE(of, xxx_of_match);
#endif

with
	of_simple_module_id_table(xxx_of_match, "yyy,zzz");

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux