summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuan Jinjie <ruanjinjie@huawei.com>2023-08-09 16:55:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-09 14:15:25 +0200
commit0aaf78182b721991a594ad8f8fe96d806e75db5a (patch)
treedf2f9c73a163fa04261d9bc48e98f0e52cbc91c8
parent593135f09368dbddc0244b859a7c3befb97214e0 (diff)
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>
-rw-r--r--drivers/tty/serial/sifive.c2
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,
},
};