Skip to content

Commit d6d6c51

Browse files
SFxingyuwubroonie
authored andcommitted
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>
1 parent 206110c commit d6d6c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/dwc/dwc-i2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ static int dw_configure_dai_by_dt(struct dw_i2s_dev *dev,
691691

692692
static int dw_i2s_probe(struct platform_device *pdev)
693693
{
694-
const struct i2s_platform_data *pdata = pdev->dev.platform_data;
694+
const struct i2s_platform_data *pdata = of_device_get_match_data(&pdev->dev);
695695
struct dw_i2s_dev *dev;
696696
struct resource *res;
697697
int ret, irq;

0 commit comments

Comments
 (0)