Linux Kernels

mmc: dw_mmc: exynos: Remove unnecessary use of of_match_ptr()

This change “mmc: dw_mmc: exynos: Remove unnecessary use of of_match_ptr()” (commit 20183d5) in Linux kernel is authored by Sachin Kamat <sachin.kamat [at] linaro.org> on Mon Feb 18 14:23:09 2013 +0530.

Description of "mmc: dw_mmc: exynos: Remove unnecessary use of of_match_ptr()"

The change “mmc: dw_mmc: exynos: Remove unnecessary use of of_match_ptr()” introduces changes as follows.

mmc: dw_mmc: exynos: Remove unnecessary use of of_match_ptr()

'dw_mci_exynos_match' is always compiled in. Hence of_match_ptr
is not required.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>

Linux kernel releases containing commit 20183d5

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "mmc: dw_mmc: exynos: Remove unnecessary use of of_match_ptr()"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/mmc/host/dw_mmc-exynos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
index 5a09c779a937..517a6033ead8 100644
--- a/drivers/mmc/host/dw_mmc-exynos.c
+++ b/drivers/mmc/host/dw_mmc-exynos.c
@@ -230,7 +230,7 @@ static struct platform_driver dw_mci_exynos_pltfm_driver = {
 	.remove		= __exit_p(dw_mci_pltfm_remove),
 	.driver		= {
 		.name		= "dwmmc_exynos",
-		.of_match_table	= of_match_ptr(dw_mci_exynos_match),
+		.of_match_table	= dw_mci_exynos_match,
 		.pm		= &dw_mci_pltfm_pmops,
 	},
 };

The commit for this change in Linux stable tree is 20183d5 (patch).

Last modified: 2020/01/11 09:36