ASoC: rockchip: Remove unnecessary function call
authorDonglin Peng <dolinux.peng@gmail.com>
Sun, 20 Aug 2017 05:25:46 +0000 (13:25 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 21 Aug 2017 16:13:20 +0000 (17:13 +0100)
commitdc94d245a57b76f38c7a936cf900cc38237638de
tree8ac28988116cc566177e5ffb7db4e5661faf7d35
parentfce7358b54c678f047273aba32f15c5dc77db77a
ASoC: rockchip: Remove unnecessary function call

First of all,the address of pdev->dev is assigned to card->dev,then
the function platform_set_drvdata copies the value the variable card
to pdev->dev.driver_data, but when calling snd_soc_register_card,the
function dev_set_drvdata(card->dev, card) will also do the same copy
operation,so i think that the former copy operation can be removed.

Signed-off-by: Peng Donglin <dolinux.peng@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rk3288_hdmi_analog.c
sound/soc/rockchip/rk3399_gru_sound.c