]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: mid-x86: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 09:09:21 +0000 (14:39 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 12 May 2013 18:07:59 +0000 (22:07 +0400)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mid-x86/mfld_machine.c

index 4139116c33b51f85bbc1794a885488f14811ec7e..78d5825198914f21f2bb5a15d8fdc98b31dfbd3f 100644 (file)
@@ -425,7 +425,6 @@ static int snd_mfld_mc_remove(struct platform_device *pdev)
        free_irq(platform_get_irq(pdev, 0), mc_drv_ctx);
        snd_soc_unregister_card(&snd_soc_card_mfld);
        kfree(mc_drv_ctx);
-       platform_set_drvdata(pdev, NULL);
        return 0;
 }