ASoC: atmel: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 11 Aug 2023 07:14:22 +0000 (15:14 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 13 Aug 2023 18:37:44 +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-2-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/atmel/atmel-i2s.c
sound/soc/atmel/atmel-pdmic.c
sound/soc/atmel/mchp-i2s-mcc.c
sound/soc/atmel/mchp-spdifrx.c
sound/soc/atmel/mchp-spdiftx.c

index 69a88dc6516523d8748075751f3ca674e53caf13..4febd4d3d0fa8cfc508f2ce93285c7b9d30a59b2 100644 (file)
@@ -730,7 +730,7 @@ static void atmel_i2s_remove(struct platform_device *pdev)
 static struct platform_driver atmel_i2s_driver = {
        .driver         = {
                .name   = "atmel_i2s",
-               .of_match_table = of_match_ptr(atmel_i2s_dt_ids),
+               .of_match_table = atmel_i2s_dt_ids,
        },
        .probe          = atmel_i2s_probe,
        .remove_new     = atmel_i2s_remove,
index efcbdd1a629fe3f3fa020168c49430cc9def4d8c..0db7815d230c3cccb9177d69e322c25f118b9ba3 100644 (file)
@@ -690,7 +690,7 @@ unregister_codec:
 static struct platform_driver atmel_pdmic_driver = {
        .driver = {
                .name           = "atmel-pdmic",
-               .of_match_table = of_match_ptr(atmel_pdmic_of_match),
+               .of_match_table = atmel_pdmic_of_match,
                .pm             = &snd_soc_pm_ops,
        },
        .probe  = atmel_pdmic_probe,
index 7c83d48ca1a021a04ba456824f00a246ce6b4d86..4b8a63295f890d53379abe4e29c414cdf6e52d1c 100644 (file)
@@ -1098,7 +1098,7 @@ static void mchp_i2s_mcc_remove(struct platform_device *pdev)
 static struct platform_driver mchp_i2s_mcc_driver = {
        .driver         = {
                .name   = "mchp_i2s_mcc",
-               .of_match_table = of_match_ptr(mchp_i2s_mcc_dt_ids),
+               .of_match_table = mchp_i2s_mcc_dt_ids,
        },
        .probe          = mchp_i2s_mcc_probe,
        .remove_new     = mchp_i2s_mcc_remove,
index ff6aba143aeeadcee601b3e0cf9976ed452b36a3..e97cd8f4a7285fe5fd15a04cd312c40b6288a984 100644 (file)
@@ -1197,7 +1197,7 @@ static struct platform_driver mchp_spdifrx_driver = {
        .remove_new = mchp_spdifrx_remove,
        .driver = {
                .name   = "mchp_spdifrx",
-               .of_match_table = of_match_ptr(mchp_spdifrx_dt_ids),
+               .of_match_table = mchp_spdifrx_dt_ids,
                .pm     = pm_ptr(&mchp_spdifrx_pm_ops),
        },
 };
index 1d3e17119888d4686e7001a059d025e2cff48000..b1040576f71fb68a4af76ec1b9c9a3c47ff434b4 100644 (file)
@@ -891,7 +891,7 @@ static struct platform_driver mchp_spdiftx_driver = {
        .remove_new = mchp_spdiftx_remove,
        .driver = {
                .name   = "mchp_spdiftx",
-               .of_match_table = of_match_ptr(mchp_spdiftx_dt_ids),
+               .of_match_table = mchp_spdiftx_dt_ids,
                .pm = pm_ptr(&mchp_spdiftx_pm_ops)
        },
 };