From: Ruan Jinjie Date: Wed, 9 Aug 2023 10:16:26 +0000 (+0800) Subject: Input: bcm-keypad - remove redundant of_match_ptr() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8109e032cf07af15d3bba860ce554cc258dcff67;p=linux.git Input: bcm-keypad - 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 Link: https://lore.kernel.org/r/20230809101626.2664651-1-ruanjinjie@huawei.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/bcm-keypad.c b/drivers/input/keyboard/bcm-keypad.c index f3c3746acd4cf..6b46f83a9edb8 100644 --- a/drivers/input/keyboard/bcm-keypad.c +++ b/drivers/input/keyboard/bcm-keypad.c @@ -418,7 +418,7 @@ static struct platform_driver bcm_kp_device_driver = { .probe = bcm_kp_probe, .driver = { .name = "bcm-keypad", - .of_match_table = of_match_ptr(bcm_kp_of_match), + .of_match_table = bcm_kp_of_match, } };