Commit d6d6c513 authored by Xingyu Wu's avatar Xingyu Wu Committed by Mark Brown

ASoC: dwc: Use ops to get platform data

Use of_device_get_match_data() to get platform data.
Signed-off-by: default avatarXingyu Wu <xingyu.wu@starfivetech.com>
Link: https://lore.kernel.org/r/20230821144151.207339-3-xingyu.wu@starfivetech.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 206110c7
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment