Skip to content

Commit d6e9e8e

Browse files
parakavinodkoul
authored andcommitted
phy: ralink: phy-mt7621-pci: drop 'of_match_ptr' to fix -Wunused-const-variable
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 <[email protected]> Signed-off-by: Sergio Paracuellos <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent b8203ec commit d6e9e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/ralink/phy-mt7621-pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ static struct platform_driver mt7621_pci_phy_driver = {
341341
.probe = mt7621_pci_phy_probe,
342342
.driver = {
343343
.name = "mt7621-pci-phy",
344-
.of_match_table = of_match_ptr(mt7621_pci_phy_ids),
344+
.of_match_table = mt7621_pci_phy_ids,
345345
},
346346
};
347347

0 commit comments

Comments
 (0)