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

net: dsa: realtek: Remove redundant of_match_ptr()

The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ruan Jinjie and committed by
David S. Miller
aae249df 61a9b174

+2 -2
+1 -1
drivers/net/dsa/realtek/realtek-mdio.c
··· 276 276 static struct mdio_driver realtek_mdio_driver = { 277 277 .mdiodrv.driver = { 278 278 .name = "realtek-mdio", 279 - .of_match_table = of_match_ptr(realtek_mdio_of_match), 279 + .of_match_table = realtek_mdio_of_match, 280 280 }, 281 281 .probe = realtek_mdio_probe, 282 282 .remove = realtek_mdio_remove,
+1 -1
drivers/net/dsa/realtek/realtek-smi.c
··· 556 556 static struct platform_driver realtek_smi_driver = { 557 557 .driver = { 558 558 .name = "realtek-smi", 559 - .of_match_table = of_match_ptr(realtek_smi_of_match), 559 + .of_match_table = realtek_smi_of_match, 560 560 }, 561 561 .probe = realtek_smi_probe, 562 562 .remove = realtek_smi_remove,