diff mbox series

[v1,1/5] ASoC: dwc: Use ops to get platform data

Message ID 20230802084301.134122-2-xingyu.wu@starfivetech.com
State Accepted
Commit d6d6c513f5d2d14651336fb4e30f097822b46f29
Headers show
Series Add I2S support for the StarFive JH7110 SoC | expand

Commit Message

Xingyu Wu Aug. 2, 2023, 8:42 a.m. UTC
Use of_device_get_match_data() to get platform data.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
---
 sound/soc/dwc/dwc-i2s.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c
index 1f1ee14b04e6..c076090a9864 100644
--- a/sound/soc/dwc/dwc-i2s.c
+++ b/sound/soc/dwc/dwc-i2s.c
@@ -690,7 +690,7 @@  static int dw_i2s_dai_probe(struct snd_soc_dai *dai)
 
 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;