Skip to content

Commit

Permalink
ALSA: atmel: Remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
Commit 0998d06 (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>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Sachin Kamat authored and tiwai committed May 3, 2013
1 parent f91eeeb commit 9ea6cfb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions sound/atmel/abdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,6 @@ static int atmel_abdac_remove(struct platform_device *pdev)
free_irq(dac->irq, dac);
snd_card_free(card);

platform_set_drvdata(pdev, NULL);

return 0;
}

Expand Down
2 changes: 0 additions & 2 deletions sound/atmel/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,6 @@ static int atmel_ac97c_remove(struct platform_device *pdev)
snd_card_set_dev(card, NULL);
snd_card_free(card);

platform_set_drvdata(pdev, NULL);

return 0;
}

Expand Down

0 comments on commit 9ea6cfb

Please sign in to comment.