Skip to content

Commit f888471

Browse files
Mani-Sadhasivamstorulf
authored andcommitted
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 <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: ff65ffe ("mmc: Add Actions Semi Owl SoCs SD/MMC driver") Cc: [email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 27a5e7d commit f888471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/owl-mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ MODULE_DEVICE_TABLE(of, owl_mmc_of_match);
689689
static struct platform_driver owl_mmc_driver = {
690690
.driver = {
691691
.name = "owl_mmc",
692-
.of_match_table = of_match_ptr(owl_mmc_of_match),
692+
.of_match_table = owl_mmc_of_match,
693693
},
694694
.probe = owl_mmc_probe,
695695
.remove = owl_mmc_remove,

0 commit comments

Comments
 (0)