OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aae249d
)
net: dsa: rzn1-a5psw: Remove redundant of_match_ptr()
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Mon, 14 Aug 2023 02:55:16 +0000
(10:55 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 16 Aug 2023 08:59:40 +0000
(09:59 +0100)
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>
drivers/net/dsa/rzn1_a5psw.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/rzn1_a5psw.c
b/drivers/net/dsa/rzn1_a5psw.c
index
2bb458f
..
9167e83
100644
(file)
--- 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,