Message ID | 20230811071426.2343133-6-ruanjinjie@huawei.com |
---|---|
State | Accepted |
Commit | f479832b42df596775c1e787e02c7277bfba6a4a |
Headers | show |
Series | [-next,1/5] ASoC: atmel: Remove redundant of_match_ptr() | expand |
diff --git a/sound/drivers/serial-generic.c b/sound/drivers/serial-generic.c index b0262541802a..c8db6c75d133 100644 --- a/sound/drivers/serial-generic.c +++ b/sound/drivers/serial-generic.c @@ -366,7 +366,7 @@ MODULE_DEVICE_TABLE(of, snd_serial_generic_dt_ids); static struct serdev_device_driver snd_serial_generic_driver = { .driver = { .name = "snd-serial-generic", - .of_match_table = of_match_ptr(snd_serial_generic_dt_ids), + .of_match_table = snd_serial_generic_dt_ids, }, .probe = snd_serial_generic_probe, };
The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> --- sound/drivers/serial-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)