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
@ -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…
x
Reference in New Issue
Block a user