mmc: owl-mmc: Get rid of of_match_ptr() macro
Subsystems (2)
Manivannan Sadhasivam
maintainerPATCH 1/1 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]>
--- drivers/mmc/host/owl-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/owl-mmc.c +1 -1
@@ -689,7 +689,7 @@ MODULE_DEVICE_TABLE(of, owl_mmc_of_match);static struct platform_driver owl_mmc_driver = { .driver = { .name ="owl_mmc" , - .of_match_table =of_match_ptr (owl_mmc_of_match), + .of_match_table = owl_mmc_of_match, }, .probe = owl_mmc_probe, .remove = owl_mmc_remove,
Signature · 1 line
2.17.1
Quoted 9 lines · Manivannan Sadhasivam
Remove the '
of_match_ptr()' macro to fix the warning whenCONFIG_OFis 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]>
Applied for fixes, thanks!
Kind regards
Uffe
Quoted 20 lines
--- drivers/mmc/host/owl-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/owl-mmc.c +1
-2@@ -689,7 +689,7 @@ MODULE_DEVICE_TABLE(of, owl_mmc_of_match);static struct platform_driver owl_mmc_driver = { .driver = { .name ="owl_mmc" , - .of_match_table =of_match_ptr (owl_mmc_of_match), + .of_match_table = owl_mmc_of_match, }, .probe = owl_mmc_probe, .remove = owl_mmc_remove, --2.17.1