projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
537a6b9
)
wlcore: spi: Remove redundant of_match_ptr()
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Mon, 14 Aug 2023 02:55:19 +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: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/ti/wlcore/spi.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ti/wlcore/spi.c
b/drivers/net/wireless/ti/wlcore/spi.c
index 3f88e6a0a510ed14f84a0d7a1e0147509293e262..7d9a139db59e1552e3f4cd6feae526c4a5211e69 100644
(file)
--- a/
drivers/net/wireless/ti/wlcore/spi.c
+++ b/
drivers/net/wireless/ti/wlcore/spi.c
@@
-554,7
+554,7
@@
static void wl1271_remove(struct spi_device *spi)
static struct spi_driver wl1271_spi_driver = {
.driver = {
.name = "wl1271_spi",
- .of_match_table =
of_match_ptr(wlcore_spi_of_match_table)
,
+ .of_match_table =
wlcore_spi_of_match_table
,
},
.probe = wl1271_probe,