diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-08-09 11:55:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-09 15:15:25 +0300 |
commit | 0aaf78182b721991a594ad8f8fe96d806e75db5a (patch) | |
tree | df2f9c73a163fa04261d9bc48e98f0e52cbc91c8 /drivers/tty | |
parent | 593135f09368dbddc0244b859a7c3befb97214e0 (diff) | |
download | linux-0aaf78182b721991a594ad8f8fe96d806e75db5a.tar.xz |
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/sifive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sifive.c b/drivers/tty/serial/sifive.c index 3ac9fbd0226e..e2efc3f84eff 100644 --- 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, }, }; |