Skip to content

Commit a446409

Browse files
Ruan Jinjielag-linaro
authored andcommitted
backlight: led_bl: 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> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Link: https://lore.kernel.org/r/20230818012308.2058373-1-ruanjinjie@huawei.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent dfd122f commit a446409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/led_bl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ MODULE_DEVICE_TABLE(of, led_bl_of_match);
243243
static struct platform_driver led_bl_driver = {
244244
.driver = {
245245
.name = "led-backlight",
246-
.of_match_table = of_match_ptr(led_bl_of_match),
246+
.of_match_table = led_bl_of_match,
247247
},
248248
.probe = led_bl_probe,
249249
.remove_new = led_bl_remove,

0 commit comments

Comments
 (0)