Skip to content

Commit 70024eb

Browse files
Donglin Pengbroonie
authored andcommitted
ASoC: qcom: Remove useless function call
The function platform_set_drvdata(pdev, data) copies the value of the variable data to pdev->dev.driver_data,but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will override it, so i think that the former copy operation is useless and can be removed. Signed-off-by: Peng Donglin <[email protected]> Acked-by: Banajit Goswami <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 193e25e commit 70024eb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sound/soc/qcom/apq8016_sbc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ static int apq8016_sbc_platform_probe(struct platform_device *pdev)
206206
if (IS_ERR(data->spkr_iomux))
207207
return PTR_ERR(data->spkr_iomux);
208208

209-
platform_set_drvdata(pdev, data);
210209
snd_soc_card_set_drvdata(card, data);
211210

212211
return devm_snd_soc_register_card(&pdev->dev, card);

0 commit comments

Comments
 (0)