mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
serial: sifive: 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> Link: https://lore.kernel.org/r/20230809085541.2969654-1-ruanjinjie@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
593135f093
commit
0aaf78182b
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue