OSDN Git Service

phy: marvell: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Mar 2023 13:26:10 +0000 (14:26 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 20 Mar 2023 12:44:59 +0000 (18:14 +0530)
commit8a65acdd43def7ebd9b51d21ca80bc4d4a55583f
tree922700fac3a6e6a2192dee61be566350d6c31b07
parent8e9930e14d040bde33a11a62eee8c3c6981c7126
phy: marvell: drop of_match_ptr for ID table

The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).  This
also fixes !CONFIG_OF error:

  drivers/phy/marvell/phy-pxa-28nm-hsic.c:192:34: error: ‘mv_hsic_phy_dt_match’ defined but not used [-Werror=unused-const-variable=]
  drivers/phy/marvell/phy-pxa-28nm-usb2.c:324:34: error: ‘mv_usbphy_dt_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230312132611.352654-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/marvell/phy-pxa-28nm-hsic.c
drivers/phy/marvell/phy-pxa-28nm-usb2.c