diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2021-06-03 07:32:19 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-06-03 08:48:14 +0300 |
commit | d6e9e8e5dd53419814eb54803b4ab3682b55cebe (patch) | |
tree | 6bb99e82fbaae502958d365339a84b263c6db31b /drivers/phy/ralink | |
parent | b8203ec7f58ae925e10fadd3d136073ae7503a6e (diff) | |
download | linux-d6e9e8e5dd53419814eb54803b4ab3682b55cebe.tar.xz |
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 <lkp@intel.com>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210603043219.32646-1-sergio.paracuellos@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/ralink')
-rw-r--r-- | drivers/phy/ralink/phy-mt7621-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/ralink/phy-mt7621-pci.c b/drivers/phy/ralink/phy-mt7621-pci.c index 753cb5bab930..2a9465f4bb3a 100644 --- a/drivers/phy/ralink/phy-mt7621-pci.c +++ b/drivers/phy/ralink/phy-mt7621-pci.c @@ -341,7 +341,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, }, }; |