From: Jean Delvare Date: Thu, 4 Aug 2022 11:59:38 +0000 (+0200) Subject: thermal/drivers/thermal_mmio: Drop of_match_ptr() X-Git-Tag: v6.6.17~6538^2^3~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1a2c4ee8be1df1931599e3214402ed9d6f97f8e;p=platform%2Fkernel%2Flinux-rpi.git thermal/drivers/thermal_mmio: Drop of_match_ptr() Now that the driver depends on OF, we know what of_match_ptr() will always resolve to, so we might as well save cpp some work. Signed-off-by: Jean Delvare Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/thermal/thermal_mmio.c b/drivers/thermal/thermal_mmio.c index 360b0df..c3e5def 100644 --- a/drivers/thermal/thermal_mmio.c +++ b/drivers/thermal/thermal_mmio.c @@ -107,7 +107,7 @@ static struct platform_driver thermal_mmio_driver = { .probe = thermal_mmio_probe, .driver = { .name = "thermal-mmio", - .of_match_table = of_match_ptr(thermal_mmio_id_table), + .of_match_table = thermal_mmio_id_table, }, };