Skip to content

Commit d6e4846

Browse files
robherringkuba-moo
authored andcommitted
net: mdio: xgene: Fix unused xgene_mdio_of_match warning for !CONFIG_OF
Commit a243ecc ("net: mdio: xgene: Use device_get_match_data()") dropped the unconditional use of xgene_mdio_of_match resulting in this warning: drivers/net/mdio/mdio-xgene.c:303:34: warning: unused variable 'xgene_mdio_of_match' [-Wunused-const-variable] The fix is to drop of_match_ptr() which is not necessary because DT is always used for this driver (well, it could in theory support ACPI only, but CONFIG_OF is always enabled for arm64). Fixes: a243ecc ("net: mdio: xgene: Use device_get_match_data()") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c0119e6 commit d6e4846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/mdio/mdio-xgene.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static void xgene_mdio_remove(struct platform_device *pdev)
437437
static struct platform_driver xgene_mdio_driver = {
438438
.driver = {
439439
.name = "xgene-mdio",
440-
.of_match_table = of_match_ptr(xgene_mdio_of_match),
440+
.of_match_table = xgene_mdio_of_match,
441441
.acpi_match_table = ACPI_PTR(xgene_mdio_acpi_match),
442442
},
443443
.probe = xgene_mdio_probe,

0 commit comments

Comments
 (0)