Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: kernel test robot <lkp@intel.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/20200621025330.10561-1-mani@kernel.org
Fixes: ff65ffe46d28 ("mmc: Add Actions Semi Owl SoCs SD/MMC driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Manivannan Sadhasivam and committed by
Ulf Hansson
f8884711 27a5e7d3

+1 -1
+1 -1
drivers/mmc/host/owl-mmc.c
··· 689 689 static struct platform_driver owl_mmc_driver = { 690 690 .driver = { 691 691 .name = "owl_mmc", 692 - .of_match_table = of_match_ptr(owl_mmc_of_match), 692 + .of_match_table = owl_mmc_of_match, 693 693 }, 694 694 .probe = owl_mmc_probe, 695 695 .remove = owl_mmc_remove,