From: Ruan Jinjie Date: Thu, 10 Aug 2023 06:26:35 +0000 (+0800) Subject: hwmon: (nsa320-hwmon) Remove redundant of_match_ptr() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7d9be29d8382030266c88a732a82d3bbc6fb0c5f;p=linux.git hwmon: (nsa320-hwmon) 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/20230810062635.1947552-1-ruanjinjie@huawei.com Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/nsa320-hwmon.c b/drivers/hwmon/nsa320-hwmon.c index e263344695491..18076ba7fc147 100644 --- a/drivers/hwmon/nsa320-hwmon.c +++ b/drivers/hwmon/nsa320-hwmon.c @@ -191,7 +191,7 @@ static struct platform_driver nsa320_hwmon_driver = { .probe = nsa320_hwmon_probe, .driver = { .name = "nsa320-hwmon", - .of_match_table = of_match_ptr(of_nsa320_hwmon_match), + .of_match_table = of_nsa320_hwmon_match, }, };