diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-08-14 04:55:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-16 10:59:40 +0200 |
commit | aae249dfa089c0c9d845ef18d70c0b7ef367df64 (patch) | |
tree | 37d0a0d13acfa3ce54327417e948f201ed728cd4 /drivers/net/dsa | |
parent | nfc: virtual_ncidev: Use module_misc_device macro to simplify the code (diff) | |
download | linux-aae249dfa089c0c9d845ef18d70c0b7ef367df64.tar.xz linux-aae249dfa089c0c9d845ef18d70c0b7ef367df64.zip |
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>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/realtek/realtek-mdio.c | 2 | ||||
-rw-r--r-- | drivers/net/dsa/realtek/realtek-smi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dsa/realtek/realtek-mdio.c b/drivers/net/dsa/realtek/realtek-mdio.c index 4310e7793e58..292e6d087e8b 100644 --- a/drivers/net/dsa/realtek/realtek-mdio.c +++ b/drivers/net/dsa/realtek/realtek-mdio.c @@ -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, diff --git a/drivers/net/dsa/realtek/realtek-smi.c b/drivers/net/dsa/realtek/realtek-smi.c index c2bd8bb6c9c2..ff13563059c5 100644 --- a/drivers/net/dsa/realtek/realtek-smi.c +++ b/drivers/net/dsa/realtek/realtek-smi.c @@ -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, |