projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
593135f
)
serial: sifive: Remove redundant of_match_ptr()
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Wed, 9 Aug 2023 08:55:41 +0000
(16:55 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 9 Aug 2023 12:15:25 +0000
(14:15 +0200)
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link:
https://lore.kernel.org/r/20230809085541.2969654-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sifive.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/sifive.c
b/drivers/tty/serial/sifive.c
index
3ac9fbd
..
e2efc3f
100644
(file)
--- a/
drivers/tty/serial/sifive.c
+++ b/
drivers/tty/serial/sifive.c
@@
-1031,7
+1031,7
@@
static struct platform_driver sifive_serial_platform_driver = {
.remove = sifive_serial_remove,
.driver = {
.name = SIFIVE_SERIAL_NAME,
- .of_match_table =
of_match_ptr(sifive_serial_of_match)
,
+ .of_match_table =
sifive_serial_of_match
,
},
};