Commit 8a65acdd authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Vinod Koul

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230312132611.352654-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 8e9930e1
...@@ -199,7 +199,7 @@ static struct platform_driver mv_hsic_phy_driver = { ...@@ -199,7 +199,7 @@ static struct platform_driver mv_hsic_phy_driver = {
.probe = mv_hsic_phy_probe, .probe = mv_hsic_phy_probe,
.driver = { .driver = {
.name = "mv-hsic-phy", .name = "mv-hsic-phy",
.of_match_table = of_match_ptr(mv_hsic_phy_dt_match), .of_match_table = mv_hsic_phy_dt_match,
}, },
}; };
module_platform_driver(mv_hsic_phy_driver); module_platform_driver(mv_hsic_phy_driver);
......
...@@ -331,7 +331,7 @@ static struct platform_driver mv_usb2_phy_driver = { ...@@ -331,7 +331,7 @@ static struct platform_driver mv_usb2_phy_driver = {
.probe = mv_usb2_phy_probe, .probe = mv_usb2_phy_probe,
.driver = { .driver = {
.name = "mv-usb2-phy", .name = "mv-usb2-phy",
.of_match_table = of_match_ptr(mv_usbphy_dt_match), .of_match_table = mv_usbphy_dt_match,
}, },
}; };
module_platform_driver(mv_usb2_phy_driver); module_platform_driver(mv_usb2_phy_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment