mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 13:29:17 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
61a9b174f4
commit
aae249dfa0
@@ -276,7 +276,7 @@ MODULE_DEVICE_TABLE(of, realtek_mdio_of_match);
|
||||
static struct mdio_driver realtek_mdio_driver = {
|
||||
.mdiodrv.driver = {
|
||||
.name = "realtek-mdio",
|
||||
.of_match_table = of_match_ptr(realtek_mdio_of_match),
|
||||
.of_match_table = realtek_mdio_of_match,
|
||||
},
|
||||
.probe = realtek_mdio_probe,
|
||||
.remove = realtek_mdio_remove,
|
||||
|
||||
@@ -556,7 +556,7 @@ MODULE_DEVICE_TABLE(of, realtek_smi_of_match);
|
||||
static struct platform_driver realtek_smi_driver = {
|
||||
.driver = {
|
||||
.name = "realtek-smi",
|
||||
.of_match_table = of_match_ptr(realtek_smi_of_match),
|
||||
.of_match_table = realtek_smi_of_match,
|
||||
},
|
||||
.probe = realtek_smi_probe,
|
||||
.remove = realtek_smi_remove,
|
||||
|
||||
Reference in New Issue
Block a user