Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1187388 > unrolled thread

Re: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec

Started byzhengxing <zhengxing@rock-chips.com>
First post2015-07-18 06:30 +0200
Last post2015-07-18 06:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec zhengxing <zhengxing@rock-chips.com> - 2015-07-18 06:30 +0200

#1187388 — Re: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec

Fromzhengxing <zhengxing@rock-chips.com>
Date2015-07-18 06:30 +0200
SubjectRe: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec
Message-ID<pNrV7-1M9-3@gated-at.bofh.it>
>>> +static int snd_rk_mc_remove(struct platform_device *pdev)
>>> +{
>>> +    struct snd_soc_card *soc_card = platform_get_drvdata(pdev);
>>> +
>>> +    snd_soc_card_set_drvdata(soc_card, NULL);
>>> +    snd_soc_unregister_card(soc_card);
>>> +    platform_set_drvdata(pdev, NULL);
>> No need for any of the _set_drvdata() calls, the core does them and they
>> shouldn't make any difference anyway.
> Done. I will remove *_set_drvdata and *get_drvdata because we don't 
> need them any more.
>
Sorry, I mean just remove platform_set_drvdata(pdev, NULL);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web