[PATCH 04/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
The function platform_set_drvdata copies the value the variable card to card->dev->driver_data, then the address of >dev is assigned to card->dev in atmel_classd_asoc_card_init, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will do the same copy operation, so

[PATCH 04/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
The function platform_set_drvdata copies the value the variable card to card->dev->driver_data, then the address of >dev is assigned to card->dev in atmel_classd_asoc_card_init, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will do the same copy operation, so