diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-08-18 09:23:08 +0800 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-08-21 12:16:56 +0100 |
commit | a4464092f2c514a7f0788906d340f0bab59fdd73 (patch) | |
tree | 0287a7428168593c1d77afa6e90e7506002583bb /drivers/video | |
parent | dfd122fe8591d513b5e51313601217b67ae98d13 (diff) | |
download | lwn-a4464092f2c514a7f0788906d340f0bab59fdd73.tar.gz lwn-a4464092f2c514a7f0788906d340f0bab59fdd73.zip |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/led_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/led_bl.c b/drivers/video/backlight/led_bl.c index 3259292fda76..032f8bddf872 100644 --- a/drivers/video/backlight/led_bl.c +++ b/drivers/video/backlight/led_bl.c @@ -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, |