diff options
author | Xingyu Wu <xingyu.wu@starfivetech.com> | 2023-08-21 17:41:48 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-23 15:56:39 +0300 |
commit | d6d6c513f5d2d14651336fb4e30f097822b46f29 (patch) | |
tree | f8e2869e9214efd0f46a0774144a284296b8678f | |
parent | 206110c74c4af6772916acacae5f28993085bf18 (diff) | |
download | linux-d6d6c513f5d2d14651336fb4e30f097822b46f29.tar.xz |
ASoC: dwc: Use ops to get platform data
Use of_device_get_match_data() to get platform data.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Link: https://lore.kernel.org/r/20230821144151.207339-3-xingyu.wu@starfivetech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/dwc/dwc-i2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index 0a4698008d64..e70d41d57dfd 100644 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -691,7 +691,7 @@ static int dw_configure_dai_by_dt(struct dw_i2s_dev *dev, 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; |