Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Vinod Koul
8a65acdd 8e9930e1

+2 -2
+1 -1
drivers/phy/marvell/phy-pxa-28nm-hsic.c
··· 199 199 .probe = mv_hsic_phy_probe, 200 200 .driver = { 201 201 .name = "mv-hsic-phy", 202 - .of_match_table = of_match_ptr(mv_hsic_phy_dt_match), 202 + .of_match_table = mv_hsic_phy_dt_match, 203 203 }, 204 204 }; 205 205 module_platform_driver(mv_hsic_phy_driver);
+1 -1
drivers/phy/marvell/phy-pxa-28nm-usb2.c
··· 331 331 .probe = mv_usb2_phy_probe, 332 332 .driver = { 333 333 .name = "mv-usb2-phy", 334 - .of_match_table = of_match_ptr(mv_usbphy_dt_match), 334 + .of_match_table = mv_usbphy_dt_match, 335 335 }, 336 336 }; 337 337 module_platform_driver(mv_usb2_phy_driver);