struct snd_soc_dai_link *dai_link;
        struct mt8183_da7219_max98357_priv *priv;
        struct pinctrl *pinctrl;
-       const struct of_device_id *match;
        int ret, i;
 
        platform_node = of_parse_phandle(pdev->dev.of_node,
                return -EINVAL;
        }
 
-       match = of_match_device(pdev->dev.driver->of_match_table, &pdev->dev);
-       if (!match || !match->data)
+       card = (struct snd_soc_card *)of_device_get_match_data(&pdev->dev);
+       if (!card)
                return -EINVAL;
-
-       card = (struct snd_soc_card *)match->data;
        card->dev = &pdev->dev;
 
        hdmi_codec = of_parse_phandle(pdev->dev.of_node,
 
        struct device_node *platform_node, *ec_codec, *hdmi_codec;
        struct snd_soc_dai_link *dai_link;
        struct mt8183_mt6358_ts3a227_max98357_priv *priv;
-       const struct of_device_id *match;
        int ret, i;
 
        platform_node = of_parse_phandle(pdev->dev.of_node,
                return -EINVAL;
        }
 
-       match = of_match_device(pdev->dev.driver->of_match_table, &pdev->dev);
-       if (!match || !match->data)
+       card = (struct snd_soc_card *)of_device_get_match_data(&pdev->dev);
+       if (!card)
                return -EINVAL;
-
-       card = (struct snd_soc_card *)match->data;
        card->dev = &pdev->dev;
 
        ec_codec = of_parse_phandle(pdev->dev.of_node, "mediatek,ec-codec", 0);
 
        struct device_node *platform_node, *hdmi_codec;
        int ret, i;
        struct snd_soc_dai_link *dai_link;
-       const struct of_device_id *match;
        struct mt8192_mt6359_priv *priv;
 
        platform_node = of_parse_phandle(pdev->dev.of_node,
                return -EINVAL;
        }
 
-       match = of_match_device(pdev->dev.driver->of_match_table, &pdev->dev);
-       if (!match || !match->data)
+       card = (struct snd_soc_card *)of_device_get_match_data(&pdev->dev);
+       if (!card)
                return -EINVAL;
-
-       card = (struct snd_soc_card *)match->data;
        card->dev = &pdev->dev;
 
        hdmi_codec = of_parse_phandle(pdev->dev.of_node,