]> git.baikalelectronics.ru Git - kernel.git/commit
phy: ralink: phy-mt7621-pci: drop 'of_match_ptr' to fix -Wunused-const-variable
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Thu, 3 Jun 2021 04:32:19 +0000 (06:32 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 3 Jun 2021 05:48:14 +0000 (11:18 +0530)
commitb2972a111d3ddfe9ae2eedf6e3bcd4640c965168
tree6bb99e82fbaae502958d365339a84b263c6db31b
parentb84c9abb694067df26392426dd875c26dac10f5d
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>
drivers/phy/ralink/phy-mt7621-pci.c