All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] phy: ralink: phy-mt7621-pci: drop 'of_match_ptr' to fix -Wunused-const-variable
@ 2021-06-03  4:32 Sergio Paracuellos
  2021-06-03  5:48 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Sergio Paracuellos @ 2021-06-03  4:32 UTC (permalink / raw)
  To: vkoul; +Cc: lkp, ndesaulniers, linux-phy, neil, ilya.lipnitskiy

The of_device_id is included unconditionally by of.h header and used
in the driver as well. Remove of_match_ptr to fix W=1 compile test
warning with !CONFIG_OF:

drivers/phy/ralink/phy-mt7621-pci.c:341:34: warning: unused variable 'mt7621_pci_phy_ids' [-Wunused-const-variable]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/phy/ralink/phy-mt7621-pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/ralink/phy-mt7621-pci.c b/drivers/phy/ralink/phy-mt7621-pci.c
index 242c5d8b8635..5e6530f545b5 100644
--- a/drivers/phy/ralink/phy-mt7621-pci.c
+++ b/drivers/phy/ralink/phy-mt7621-pci.c
@@ -348,7 +348,7 @@ static struct platform_driver mt7621_pci_phy_driver = {
 	.probe = mt7621_pci_phy_probe,
 	.driver = {
 		.name = "mt7621-pci-phy",
-		.of_match_table = of_match_ptr(mt7621_pci_phy_ids),
+		.of_match_table = mt7621_pci_phy_ids,
 	},
 };
 
-- 
2.25.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] phy: ralink: phy-mt7621-pci: drop 'of_match_ptr' to fix -Wunused-const-variable
  2021-06-03  4:32 [PATCH] phy: ralink: phy-mt7621-pci: drop 'of_match_ptr' to fix -Wunused-const-variable Sergio Paracuellos
@ 2021-06-03  5:48 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2021-06-03  5:48 UTC (permalink / raw)
  To: Sergio Paracuellos; +Cc: lkp, ndesaulniers, linux-phy, neil, ilya.lipnitskiy

On 03-06-21, 06:32, Sergio Paracuellos wrote:
> The of_device_id is included unconditionally by of.h header and used
> in the driver as well. Remove of_match_ptr to fix W=1 compile test
> warning with !CONFIG_OF:

Applied, thanks

-- 
~Vinod

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-03  5:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03  4:32 [PATCH] phy: ralink: phy-mt7621-pci: drop 'of_match_ptr' to fix -Wunused-const-variable Sergio Paracuellos
2021-06-03  5:48 ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.