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

Configure Feed

Select the types of activity you want to include in your feed.

phy: st: spear: 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/st/phy-spear1310-miphy.c:172:34: error: ‘spear1310_miphy_of_match’ defined but not used [-Werror=unused-const-variable=]
drivers/phy/st/phy-spear1340-miphy.c:182:34: error: ‘spear1340_miphy_of_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-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Vinod Koul
5e4d267f 8a65acdd

+2 -2
+1 -1
drivers/phy/st/phy-spear1310-miphy.c
··· 246 246 .probe = spear1310_miphy_probe, 247 247 .driver = { 248 248 .name = "spear1310-miphy", 249 - .of_match_table = of_match_ptr(spear1310_miphy_of_match), 249 + .of_match_table = spear1310_miphy_of_match, 250 250 }, 251 251 }; 252 252
+1 -1
drivers/phy/st/phy-spear1340-miphy.c
··· 279 279 .driver = { 280 280 .name = "spear1340-miphy", 281 281 .pm = &spear1340_miphy_pm_ops, 282 - .of_match_table = of_match_ptr(spear1340_miphy_of_match), 282 + .of_match_table = spear1340_miphy_of_match, 283 283 }, 284 284 }; 285 285