Skip to content

Commit 9c97790

Browse files
committed
ASoC: dwc: Fix non-DT instantiation
Commit d6d6c51 ("ASoC: dwc: Use ops to get platform data") converted the DesignWare I2S driver to use a DT specific function to obtain platform data but this breaks at least non-DT systems such as AMD. Revert it. Fixes: d6d6c51 ("ASoC: dwc: Use ops to get platform data") Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20231013-asoc-fix-dwc-v1-1-63211bb746b9@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4e9a429 commit 9c97790

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/dwc/dwc-i2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ static int jh7110_i2stx0_clk_cfg(struct i2s_clk_config_data *config)
917917

918918
static int dw_i2s_probe(struct platform_device *pdev)
919919
{
920-
const struct i2s_platform_data *pdata = of_device_get_match_data(&pdev->dev);
920+
const struct i2s_platform_data *pdata = pdev->dev.platform_data;
921921
struct dw_i2s_dev *dev;
922922
struct resource *res;
923923
int ret, irq;

0 commit comments

Comments
 (0)