mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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>
This commit is contained in:
parent
dfd122fe85
commit
a4464092f2
@ -243,7 +243,7 @@ MODULE_DEVICE_TABLE(of, led_bl_of_match);
|
||||
static struct platform_driver led_bl_driver = {
|
||||
.driver = {
|
||||
.name = "led-backlight",
|
||||
.of_match_table = of_match_ptr(led_bl_of_match),
|
||||
.of_match_table = led_bl_of_match,
|
||||
},
|
||||
.probe = led_bl_probe,
|
||||
.remove_new = led_bl_remove,
|
||||
|
Loading…
Reference in New Issue
Block a user