Commit aae249df authored by Ruan Jinjie's avatar Ruan Jinjie Committed by David S. Miller

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: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 61a9b174
...@@ -276,7 +276,7 @@ MODULE_DEVICE_TABLE(of, realtek_mdio_of_match); ...@@ -276,7 +276,7 @@ MODULE_DEVICE_TABLE(of, realtek_mdio_of_match);
static struct mdio_driver realtek_mdio_driver = { static struct mdio_driver realtek_mdio_driver = {
.mdiodrv.driver = { .mdiodrv.driver = {
.name = "realtek-mdio", .name = "realtek-mdio",
.of_match_table = of_match_ptr(realtek_mdio_of_match), .of_match_table = realtek_mdio_of_match,
}, },
.probe = realtek_mdio_probe, .probe = realtek_mdio_probe,
.remove = realtek_mdio_remove, .remove = realtek_mdio_remove,
......
...@@ -556,7 +556,7 @@ MODULE_DEVICE_TABLE(of, realtek_smi_of_match); ...@@ -556,7 +556,7 @@ MODULE_DEVICE_TABLE(of, realtek_smi_of_match);
static struct platform_driver realtek_smi_driver = { static struct platform_driver realtek_smi_driver = {
.driver = { .driver = {
.name = "realtek-smi", .name = "realtek-smi",
.of_match_table = of_match_ptr(realtek_smi_of_match), .of_match_table = realtek_smi_of_match,
}, },
.probe = realtek_smi_probe, .probe = realtek_smi_probe,
.remove = realtek_smi_remove, .remove = realtek_smi_remove,
......
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