ASoC: atmel: tse850-pcm5142: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 11 Aug 2023 07:14:23 +0000 (15:14 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 13 Aug 2023 18:37:45 +0000 (19:37 +0100)
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com
Link: https://lore.kernel.org/r/20230811071426.2343133-3-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/atmel/tse850-pcm5142.c

index efead272d92b163f33db8262f99ce608657cbbcb..c809b121037f04a389b8875a0edbdfe53c832755 100644 (file)
@@ -430,7 +430,7 @@ MODULE_DEVICE_TABLE(of, tse850_dt_ids);
 static struct platform_driver tse850_driver = {
        .driver = {
                .name = "axentia-tse850-pcm5142",
-               .of_match_table = of_match_ptr(tse850_dt_ids),
+               .of_match_table = tse850_dt_ids,
        },
        .probe = tse850_probe,
        .remove_new = tse850_remove,