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 <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230810062635.1947552-1-ruanjinjie@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Ruan Jinjie 2023-08-10 14:26:35 +08:00 committed by Guenter Roeck
parent 1030892c44
commit 7d9be29d83
1 changed files with 1 additions and 1 deletions

View File

@ -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,
},
};