* [PATCH] mmc: owl-mmc: Get rid of of_match_ptr() macro
@ 2020-06-21 2:53 Manivannan Sadhasivam
2020-07-06 14:49 ` Ulf Hansson
0 siblings, 1 reply; 2+ messages in thread
From: Manivannan Sadhasivam @ 2020-06-21 2:53 UTC (permalink / raw)
To: ulf.hansson
Cc: afaerber, linux-mmc, linux-arm-kernel, linux-kernel,
Manivannan Sadhasivam
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>
---
drivers/mmc/host/owl-mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c
index 5e20c099fe03..df43f42855e2 100644
--- a/drivers/mmc/host/owl-mmc.c
+++ b/drivers/mmc/host/owl-mmc.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mmc: owl-mmc: Get rid of of_match_ptr() macro
2020-06-21 2:53 [PATCH] mmc: owl-mmc: Get rid of of_match_ptr() macro Manivannan Sadhasivam
@ 2020-07-06 14:49 ` Ulf Hansson
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2020-07-06 14:49 UTC (permalink / raw)
To: Manivannan Sadhasivam
Cc: Andreas Färber, linux-mmc, Linux ARM, Linux Kernel Mailing List
On Sun, 21 Jun 2020 at 04:54, Manivannan Sadhasivam <mani@kernel.org> wrote:
>
> 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>
Applied for fixes, thanks!
Kind regards
Uffe
> ---
> drivers/mmc/host/owl-mmc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c
> index 5e20c099fe03..df43f42855e2 100644
> --- a/drivers/mmc/host/owl-mmc.c
> +++ b/drivers/mmc/host/owl-mmc.c
> @@ -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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-06 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21 2:53 [PATCH] mmc: owl-mmc: Get rid of of_match_ptr() macro Manivannan Sadhasivam
2020-07-06 14:49 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).