Revert "ASoC: dwc: Fix non-DT instantiation"
[platform/kernel/linux-starfive.git] / sound / soc / dwc / dwc-i2s.c
index 9ea4be5..22c0041 100644 (file)
@@ -917,7 +917,7 @@ static int jh7110_i2stx0_clk_cfg(struct i2s_clk_config_data *config)
 
 static int dw_i2s_probe(struct platform_device *pdev)
 {
-       const struct i2s_platform_data *pdata = pdev->dev.platform_data;
+       const struct i2s_platform_data *pdata = of_device_get_match_data(&pdev->dev);
        struct dw_i2s_dev *dev;
        struct resource *res;
        int ret, irq;