diff mbox series

[-next] thermal/drivers/db8500: Remove redundant of_match_ptr()

Message ID 20230809101439.2663042-1-ruanjinjie@huawei.com (mailing list archive)
State New
Delegated to: Daniel Lezcano
Headers show
Series [-next] thermal/drivers/db8500: Remove redundant of_match_ptr() | expand

Commit Message

Jinjie Ruan Aug. 9, 2023, 10:14 a.m. UTC
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/thermal/db8500_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Linus Walleij Aug. 9, 2023, 10:17 a.m. UTC | #1
On Wed, Aug 9, 2023 at 12:15 PM Ruan Jinjie <ruanjinjie@huawei.com> wrote:

> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
>
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Wa
Daniel Lezcano Aug. 16, 2023, 10:09 a.m. UTC | #2
On 09/08/2023 12:14, Ruan Jinjie wrote:
> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
> ---

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/thermal/db8500_thermal.c b/drivers/thermal/db8500_thermal.c
index fca5c2c93bf9..576f88b6a1b3 100644
--- a/drivers/thermal/db8500_thermal.c
+++ b/drivers/thermal/db8500_thermal.c
@@ -229,7 +229,7 @@  MODULE_DEVICE_TABLE(of, db8500_thermal_match);
 static struct platform_driver db8500_thermal_driver = {
 	.driver = {
 		.name = "db8500-thermal",
-		.of_match_table = of_match_ptr(db8500_thermal_match),
+		.of_match_table = db8500_thermal_match,
 	},
 	.probe = db8500_thermal_probe,
 	.suspend = db8500_thermal_suspend,