summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRuan Jinjie <ruanjinjie@huawei.com>2023-08-14 05:55:16 +0300
committerDavid S. Miller <davem@davemloft.net>2023-08-16 11:59:40 +0300
commit81d463c02b910f4abb1415c365f9491e10333552 (patch)
treeb2d775ec6ce7765ba963cd8861503099fa5c15df /drivers
parentaae249dfa089c0c9d845ef18d70c0b7ef367df64 (diff)
downloadlinux-81d463c02b910f4abb1415c365f9491e10333552.tar.xz
net: dsa: rzn1-a5psw: 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> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/rzn1_a5psw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c
index 2bb458f2c1f8..9167e83fbceb 100644
--- a/drivers/net/dsa/rzn1_a5psw.c
+++ b/drivers/net/dsa/rzn1_a5psw.c
@@ -1314,7 +1314,7 @@ MODULE_DEVICE_TABLE(of, a5psw_of_mtable);
static struct platform_driver a5psw_driver = {
.driver = {
.name = "rzn1_a5psw",
- .of_match_table = of_match_ptr(a5psw_of_mtable),
+ .of_match_table = a5psw_of_mtable,
},
.probe = a5psw_probe,
.remove = a5psw_remove,