Commit f8884711 authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Ulf Hansson

mmc: owl-mmc: Get rid of of_match_ptr() macro

Remove the 'of_match_ptr()' macro to fix the warning when CONFIG_OF is
not selected.

drivers/mmc/host/owl-mmc.c:677:34: warning: unused variable 'owl_mmc_of_match'
[-Wunused-const-variable]
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarManivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/20200621025330.10561-1-mani@kernel.org
Fixes: ff65ffe4 ("mmc: Add Actions Semi Owl SoCs SD/MMC driver")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 27a5e7d3
...@@ -689,7 +689,7 @@ MODULE_DEVICE_TABLE(of, owl_mmc_of_match); ...@@ -689,7 +689,7 @@ MODULE_DEVICE_TABLE(of, owl_mmc_of_match);
static struct platform_driver owl_mmc_driver = { static struct platform_driver owl_mmc_driver = {
.driver = { .driver = {
.name = "owl_mmc", .name = "owl_mmc",
.of_match_table = of_match_ptr(owl_mmc_of_match), .of_match_table = owl_mmc_of_match,
}, },
.probe = owl_mmc_probe, .probe = owl_mmc_probe,
.remove = owl_mmc_remove, .remove = owl_mmc_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment