Skip to content

Commit f35e839

Browse files
committed
ALSA: Remove the rest of *_set_drvdata(NULL) calls
A few calls are still left in parport drivers after this commit, which I'm not quite sure yet. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 8b5a1f9 commit f35e839

5 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎sound/arm/aaci.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,8 +1076,6 @@ static int aaci_remove(struct amba_device *dev)
10761076
{
10771077
struct snd_card *card = amba_get_drvdata(dev);
10781078

1079-
amba_set_drvdata(dev, NULL);
1080-
10811079
if (card) {
10821080
struct aaci *aaci = card->private_data;
10831081
writel(0, aaci->base + AACI_MAINCR);

‎sound/drivers/dummy.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,6 @@ static int snd_dummy_probe(struct platform_device *devptr)
11291129
static int snd_dummy_remove(struct platform_device *devptr)
11301130
{
11311131
snd_card_free(platform_get_drvdata(devptr));
1132-
platform_set_drvdata(devptr, NULL);
11331132
return 0;
11341133
}
11351134

‎sound/parisc/harmony.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,6 @@ snd_harmony_free(struct snd_harmony *h)
902902
if (h->iobase)
903903
iounmap(h->iobase);
904904

905-
parisc_set_drvdata(h->dev, NULL);
906-
907905
kfree(h);
908906
return 0;
909907
}
@@ -1016,7 +1014,6 @@ static int
10161014
snd_harmony_remove(struct parisc_device *padev)
10171015
{
10181016
snd_card_free(parisc_get_drvdata(padev));
1019-
parisc_set_drvdata(padev, NULL);
10201017
return 0;
10211018
}
10221019

‎sound/sparc/dbri.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,8 +2670,6 @@ static int dbri_remove(struct platform_device *op)
26702670
snd_dbri_free(card->private_data);
26712671
snd_card_free(card);
26722672

2673-
dev_set_drvdata(&op->dev, NULL);
2674-
26752673
return 0;
26762674
}
26772675

‎sound/spi/at73c213.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,6 @@ static int snd_at73c213_remove(struct spi_device *spi)
10701070

10711071
ssc_free(chip->ssc);
10721072
snd_card_free(card);
1073-
dev_set_drvdata(&spi->dev, NULL);
10741073

10751074
return 0;
10761075
}

0 commit comments

Comments
 (0)