diff options
51 files changed, 0 insertions, 53 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index ad8a31173939..d2b9d617aee5 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -1046,7 +1046,6 @@ static void | |||
1046 | snd_ad1889_remove(struct pci_dev *pci) | 1046 | snd_ad1889_remove(struct pci_dev *pci) |
1047 | { | 1047 | { |
1048 | snd_card_free(pci_get_drvdata(pci)); | 1048 | snd_card_free(pci_get_drvdata(pci)); |
1049 | pci_set_drvdata(pci, NULL); | ||
1050 | } | 1049 | } |
1051 | 1050 | ||
1052 | static DEFINE_PCI_DEVICE_TABLE(snd_ad1889_ids) = { | 1051 | static DEFINE_PCI_DEVICE_TABLE(snd_ad1889_ids) = { |
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index 53754f5edeb1..3dfa12b670eb 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -2298,7 +2298,6 @@ static int snd_ali_probe(struct pci_dev *pci, | |||
2298 | static void snd_ali_remove(struct pci_dev *pci) | 2298 | static void snd_ali_remove(struct pci_dev *pci) |
2299 | { | 2299 | { |
2300 | snd_card_free(pci_get_drvdata(pci)); | 2300 | snd_card_free(pci_get_drvdata(pci)); |
2301 | pci_set_drvdata(pci, NULL); | ||
2302 | } | 2301 | } |
2303 | 2302 | ||
2304 | static struct pci_driver ali5451_driver = { | 2303 | static struct pci_driver ali5451_driver = { |
diff --git a/sound/pci/als300.c b/sound/pci/als300.c index 864c4310366b..591efb6eef05 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c | |||
@@ -282,7 +282,6 @@ static void snd_als300_remove(struct pci_dev *pci) | |||
282 | { | 282 | { |
283 | snd_als300_dbgcallenter(); | 283 | snd_als300_dbgcallenter(); |
284 | snd_card_free(pci_get_drvdata(pci)); | 284 | snd_card_free(pci_get_drvdata(pci)); |
285 | pci_set_drvdata(pci, NULL); | ||
286 | snd_als300_dbgcallleave(); | 285 | snd_als300_dbgcallleave(); |
287 | } | 286 | } |
288 | 287 | ||
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index 61efda2a4d94..ffc821b0139e 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -984,7 +984,6 @@ out: | |||
984 | static void snd_card_als4000_remove(struct pci_dev *pci) | 984 | static void snd_card_als4000_remove(struct pci_dev *pci) |
985 | { | 985 | { |
986 | snd_card_free(pci_get_drvdata(pci)); | 986 | snd_card_free(pci_get_drvdata(pci)); |
987 | pci_set_drvdata(pci, NULL); | ||
988 | } | 987 | } |
989 | 988 | ||
990 | #ifdef CONFIG_PM_SLEEP | 989 | #ifdef CONFIG_PM_SLEEP |
diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c index ef5019fe5193..7f0272032fbb 100644 --- a/sound/pci/asihpi/hpioctl.c +++ b/sound/pci/asihpi/hpioctl.c | |||
@@ -445,7 +445,6 @@ void asihpi_adapter_remove(struct pci_dev *pci_dev) | |||
445 | if (pa->p_buffer) | 445 | if (pa->p_buffer) |
446 | vfree(pa->p_buffer); | 446 | vfree(pa->p_buffer); |
447 | 447 | ||
448 | pci_set_drvdata(pci_dev, NULL); | ||
449 | if (1) | 448 | if (1) |
450 | dev_info(&pci_dev->dev, | 449 | dev_info(&pci_dev->dev, |
451 | "remove %04x:%04x,%04x:%04x,%04x, HPI index %d\n", | 450 | "remove %04x:%04x,%04x:%04x,%04x, HPI index %d\n", |
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 6e78c6789858..fe4c61bdb8ba 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1714,7 +1714,6 @@ static int snd_atiixp_probe(struct pci_dev *pci, | |||
1714 | static void snd_atiixp_remove(struct pci_dev *pci) | 1714 | static void snd_atiixp_remove(struct pci_dev *pci) |
1715 | { | 1715 | { |
1716 | snd_card_free(pci_get_drvdata(pci)); | 1716 | snd_card_free(pci_get_drvdata(pci)); |
1717 | pci_set_drvdata(pci, NULL); | ||
1718 | } | 1717 | } |
1719 | 1718 | ||
1720 | static struct pci_driver atiixp_driver = { | 1719 | static struct pci_driver atiixp_driver = { |
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index d0bec7ba3b0d..cf29b9a1d65d 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -1334,7 +1334,6 @@ static int snd_atiixp_probe(struct pci_dev *pci, | |||
1334 | static void snd_atiixp_remove(struct pci_dev *pci) | 1334 | static void snd_atiixp_remove(struct pci_dev *pci) |
1335 | { | 1335 | { |
1336 | snd_card_free(pci_get_drvdata(pci)); | 1336 | snd_card_free(pci_get_drvdata(pci)); |
1337 | pci_set_drvdata(pci, NULL); | ||
1338 | } | 1337 | } |
1339 | 1338 | ||
1340 | static struct pci_driver atiixp_modem_driver = { | 1339 | static struct pci_driver atiixp_modem_driver = { |
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c index b157e1fadd8f..7059dd69e5e6 100644 --- a/sound/pci/au88x0/au88x0.c +++ b/sound/pci/au88x0/au88x0.c | |||
@@ -371,7 +371,6 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
371 | static void snd_vortex_remove(struct pci_dev *pci) | 371 | static void snd_vortex_remove(struct pci_dev *pci) |
372 | { | 372 | { |
373 | snd_card_free(pci_get_drvdata(pci)); | 373 | snd_card_free(pci_get_drvdata(pci)); |
374 | pci_set_drvdata(pci, NULL); | ||
375 | } | 374 | } |
376 | 375 | ||
377 | // pci_driver definition | 376 | // pci_driver definition |
diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c index 08e9a4702cbc..2925220d3fcf 100644 --- a/sound/pci/aw2/aw2-alsa.c +++ b/sound/pci/aw2/aw2-alsa.c | |||
@@ -392,7 +392,6 @@ static int snd_aw2_probe(struct pci_dev *pci, | |||
392 | static void snd_aw2_remove(struct pci_dev *pci) | 392 | static void snd_aw2_remove(struct pci_dev *pci) |
393 | { | 393 | { |
394 | snd_card_free(pci_get_drvdata(pci)); | 394 | snd_card_free(pci_get_drvdata(pci)); |
395 | pci_set_drvdata(pci, NULL); | ||
396 | } | 395 | } |
397 | 396 | ||
398 | /* open callback */ | 397 | /* open callback */ |
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index 1204a0fa3368..c8e121611593 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -2725,7 +2725,6 @@ snd_azf3328_remove(struct pci_dev *pci) | |||
2725 | { | 2725 | { |
2726 | snd_azf3328_dbgcallenter(); | 2726 | snd_azf3328_dbgcallenter(); |
2727 | snd_card_free(pci_get_drvdata(pci)); | 2727 | snd_card_free(pci_get_drvdata(pci)); |
2728 | pci_set_drvdata(pci, NULL); | ||
2729 | snd_azf3328_dbgcallleave(); | 2728 | snd_azf3328_dbgcallleave(); |
2730 | } | 2729 | } |
2731 | 2730 | ||
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index 9febe5509748..18802039497a 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -953,7 +953,6 @@ _error: | |||
953 | static void snd_bt87x_remove(struct pci_dev *pci) | 953 | static void snd_bt87x_remove(struct pci_dev *pci) |
954 | { | 954 | { |
955 | snd_card_free(pci_get_drvdata(pci)); | 955 | snd_card_free(pci_get_drvdata(pci)); |
956 | pci_set_drvdata(pci, NULL); | ||
957 | } | 956 | } |
958 | 957 | ||
959 | /* default entries for all Bt87x cards - it's not exported */ | 958 | /* default entries for all Bt87x cards - it's not exported */ |
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 1610a5705970..f4db5587e86e 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1896,7 +1896,6 @@ static int snd_ca0106_probe(struct pci_dev *pci, | |||
1896 | static void snd_ca0106_remove(struct pci_dev *pci) | 1896 | static void snd_ca0106_remove(struct pci_dev *pci) |
1897 | { | 1897 | { |
1898 | snd_card_free(pci_get_drvdata(pci)); | 1898 | snd_card_free(pci_get_drvdata(pci)); |
1899 | pci_set_drvdata(pci, NULL); | ||
1900 | } | 1899 | } |
1901 | 1900 | ||
1902 | #ifdef CONFIG_PM_SLEEP | 1901 | #ifdef CONFIG_PM_SLEEP |
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index c617435db6e6..2755ec5bcc25 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -3317,7 +3317,6 @@ static int snd_cmipci_probe(struct pci_dev *pci, | |||
3317 | static void snd_cmipci_remove(struct pci_dev *pci) | 3317 | static void snd_cmipci_remove(struct pci_dev *pci) |
3318 | { | 3318 | { |
3319 | snd_card_free(pci_get_drvdata(pci)); | 3319 | snd_card_free(pci_get_drvdata(pci)); |
3320 | pci_set_drvdata(pci, NULL); | ||
3321 | } | 3320 | } |
3322 | 3321 | ||
3323 | 3322 | ||
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index 6a8695069941..64659facd155 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c | |||
@@ -1971,7 +1971,6 @@ static int snd_cs4281_probe(struct pci_dev *pci, | |||
1971 | static void snd_cs4281_remove(struct pci_dev *pci) | 1971 | static void snd_cs4281_remove(struct pci_dev *pci) |
1972 | { | 1972 | { |
1973 | snd_card_free(pci_get_drvdata(pci)); | 1973 | snd_card_free(pci_get_drvdata(pci)); |
1974 | pci_set_drvdata(pci, NULL); | ||
1975 | } | 1974 | } |
1976 | 1975 | ||
1977 | /* | 1976 | /* |
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index 6b0d8b50a305..b03498325d66 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -158,7 +158,6 @@ static int snd_card_cs46xx_probe(struct pci_dev *pci, | |||
158 | static void snd_card_cs46xx_remove(struct pci_dev *pci) | 158 | static void snd_card_cs46xx_remove(struct pci_dev *pci) |
159 | { | 159 | { |
160 | snd_card_free(pci_get_drvdata(pci)); | 160 | snd_card_free(pci_get_drvdata(pci)); |
161 | pci_set_drvdata(pci, NULL); | ||
162 | } | 161 | } |
163 | 162 | ||
164 | static struct pci_driver cs46xx_driver = { | 163 | static struct pci_driver cs46xx_driver = { |
diff --git a/sound/pci/cs5530.c b/sound/pci/cs5530.c index dace827b45d1..c6b82c85e044 100644 --- a/sound/pci/cs5530.c +++ b/sound/pci/cs5530.c | |||
@@ -91,7 +91,6 @@ static int snd_cs5530_dev_free(struct snd_device *device) | |||
91 | static void snd_cs5530_remove(struct pci_dev *pci) | 91 | static void snd_cs5530_remove(struct pci_dev *pci) |
92 | { | 92 | { |
93 | snd_card_free(pci_get_drvdata(pci)); | 93 | snd_card_free(pci_get_drvdata(pci)); |
94 | pci_set_drvdata(pci, NULL); | ||
95 | } | 94 | } |
96 | 95 | ||
97 | static u8 snd_cs5530_mixer_read(unsigned long io, u8 reg) | 96 | static u8 snd_cs5530_mixer_read(unsigned long io, u8 reg) |
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index 7e4b13e2d12a..902bebd3b3fb 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -391,7 +391,6 @@ static void snd_cs5535audio_remove(struct pci_dev *pci) | |||
391 | { | 391 | { |
392 | olpc_quirks_cleanup(); | 392 | olpc_quirks_cleanup(); |
393 | snd_card_free(pci_get_drvdata(pci)); | 393 | snd_card_free(pci_get_drvdata(pci)); |
394 | pci_set_drvdata(pci, NULL); | ||
395 | } | 394 | } |
396 | 395 | ||
397 | static struct pci_driver cs5535audio_driver = { | 396 | static struct pci_driver cs5535audio_driver = { |
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index d01ffcb2b2f5..d464ad2fc7b7 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -122,7 +122,6 @@ error: | |||
122 | static void ct_card_remove(struct pci_dev *pci) | 122 | static void ct_card_remove(struct pci_dev *pci) |
123 | { | 123 | { |
124 | snd_card_free(pci_get_drvdata(pci)); | 124 | snd_card_free(pci_get_drvdata(pci)); |
125 | pci_set_drvdata(pci, NULL); | ||
126 | } | 125 | } |
127 | 126 | ||
128 | #ifdef CONFIG_PM_SLEEP | 127 | #ifdef CONFIG_PM_SLEEP |
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index 760cbff53210..05cfe551ce42 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
@@ -2323,7 +2323,6 @@ static void snd_echo_remove(struct pci_dev *pci) | |||
2323 | chip = pci_get_drvdata(pci); | 2323 | chip = pci_get_drvdata(pci); |
2324 | if (chip) | 2324 | if (chip) |
2325 | snd_card_free(chip->card); | 2325 | snd_card_free(chip->card); |
2326 | pci_set_drvdata(pci, NULL); | ||
2327 | } | 2326 | } |
2328 | 2327 | ||
2329 | 2328 | ||
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c index 8c5010f7889c..9e1bd0c39a8c 100644 --- a/sound/pci/emu10k1/emu10k1.c +++ b/sound/pci/emu10k1/emu10k1.c | |||
@@ -202,7 +202,6 @@ static int snd_card_emu10k1_probe(struct pci_dev *pci, | |||
202 | static void snd_card_emu10k1_remove(struct pci_dev *pci) | 202 | static void snd_card_emu10k1_remove(struct pci_dev *pci) |
203 | { | 203 | { |
204 | snd_card_free(pci_get_drvdata(pci)); | 204 | snd_card_free(pci_get_drvdata(pci)); |
205 | pci_set_drvdata(pci, NULL); | ||
206 | } | 205 | } |
207 | 206 | ||
208 | 207 | ||
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index cdff11d48ebd..56ad9d6f200d 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -1623,7 +1623,6 @@ static int snd_emu10k1x_probe(struct pci_dev *pci, | |||
1623 | static void snd_emu10k1x_remove(struct pci_dev *pci) | 1623 | static void snd_emu10k1x_remove(struct pci_dev *pci) |
1624 | { | 1624 | { |
1625 | snd_card_free(pci_get_drvdata(pci)); | 1625 | snd_card_free(pci_get_drvdata(pci)); |
1626 | pci_set_drvdata(pci, NULL); | ||
1627 | } | 1626 | } |
1628 | 1627 | ||
1629 | // PCI IDs | 1628 | // PCI IDs |
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index db2dc835171d..372f8ea91fca 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -2497,7 +2497,6 @@ static int snd_audiopci_probe(struct pci_dev *pci, | |||
2497 | static void snd_audiopci_remove(struct pci_dev *pci) | 2497 | static void snd_audiopci_remove(struct pci_dev *pci) |
2498 | { | 2498 | { |
2499 | snd_card_free(pci_get_drvdata(pci)); | 2499 | snd_card_free(pci_get_drvdata(pci)); |
2500 | pci_set_drvdata(pci, NULL); | ||
2501 | } | 2500 | } |
2502 | 2501 | ||
2503 | static struct pci_driver ens137x_driver = { | 2502 | static struct pci_driver ens137x_driver = { |
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 8423403954ab..9213fb38921c 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -1881,7 +1881,6 @@ static int snd_es1938_probe(struct pci_dev *pci, | |||
1881 | static void snd_es1938_remove(struct pci_dev *pci) | 1881 | static void snd_es1938_remove(struct pci_dev *pci) |
1882 | { | 1882 | { |
1883 | snd_card_free(pci_get_drvdata(pci)); | 1883 | snd_card_free(pci_get_drvdata(pci)); |
1884 | pci_set_drvdata(pci, NULL); | ||
1885 | } | 1884 | } |
1886 | 1885 | ||
1887 | static struct pci_driver es1938_driver = { | 1886 | static struct pci_driver es1938_driver = { |
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index a1f32b5ae0d1..714525154605 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -2909,7 +2909,6 @@ static int snd_es1968_probe(struct pci_dev *pci, | |||
2909 | static void snd_es1968_remove(struct pci_dev *pci) | 2909 | static void snd_es1968_remove(struct pci_dev *pci) |
2910 | { | 2910 | { |
2911 | snd_card_free(pci_get_drvdata(pci)); | 2911 | snd_card_free(pci_get_drvdata(pci)); |
2912 | pci_set_drvdata(pci, NULL); | ||
2913 | } | 2912 | } |
2914 | 2913 | ||
2915 | static struct pci_driver es1968_driver = { | 2914 | static struct pci_driver es1968_driver = { |
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index 4f07fda5adf2..706c5b67b708 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -1370,7 +1370,6 @@ static int snd_card_fm801_probe(struct pci_dev *pci, | |||
1370 | static void snd_card_fm801_remove(struct pci_dev *pci) | 1370 | static void snd_card_fm801_remove(struct pci_dev *pci) |
1371 | { | 1371 | { |
1372 | snd_card_free(pci_get_drvdata(pci)); | 1372 | snd_card_free(pci_get_drvdata(pci)); |
1373 | pci_set_drvdata(pci, NULL); | ||
1374 | } | 1373 | } |
1375 | 1374 | ||
1376 | #ifdef CONFIG_PM_SLEEP | 1375 | #ifdef CONFIG_PM_SLEEP |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index ac75975a4276..49dfad4a099e 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -3764,7 +3764,6 @@ static int azx_probe(struct pci_dev *pci, | |||
3764 | 3764 | ||
3765 | out_free: | 3765 | out_free: |
3766 | snd_card_free(card); | 3766 | snd_card_free(card); |
3767 | pci_set_drvdata(pci, NULL); | ||
3768 | return err; | 3767 | return err; |
3769 | } | 3768 | } |
3770 | 3769 | ||
@@ -3834,7 +3833,6 @@ static void azx_remove(struct pci_dev *pci) | |||
3834 | 3833 | ||
3835 | if (card) | 3834 | if (card) |
3836 | snd_card_free(card); | 3835 | snd_card_free(card); |
3837 | pci_set_drvdata(pci, NULL); | ||
3838 | } | 3836 | } |
3839 | 3837 | ||
3840 | /* PCI IDs */ | 3838 | /* PCI IDs */ |
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 806407a3973e..28ec872e54c0 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -2807,7 +2807,6 @@ static void snd_ice1712_remove(struct pci_dev *pci) | |||
2807 | if (ice->card_info && ice->card_info->chip_exit) | 2807 | if (ice->card_info && ice->card_info->chip_exit) |
2808 | ice->card_info->chip_exit(ice); | 2808 | ice->card_info->chip_exit(ice); |
2809 | snd_card_free(card); | 2809 | snd_card_free(card); |
2810 | pci_set_drvdata(pci, NULL); | ||
2811 | } | 2810 | } |
2812 | 2811 | ||
2813 | static struct pci_driver ice1712_driver = { | 2812 | static struct pci_driver ice1712_driver = { |
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index ce70e7f113e0..500471778291 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c | |||
@@ -2800,7 +2800,6 @@ static void snd_vt1724_remove(struct pci_dev *pci) | |||
2800 | if (ice->card_info && ice->card_info->chip_exit) | 2800 | if (ice->card_info && ice->card_info->chip_exit) |
2801 | ice->card_info->chip_exit(ice); | 2801 | ice->card_info->chip_exit(ice); |
2802 | snd_card_free(card); | 2802 | snd_card_free(card); |
2803 | pci_set_drvdata(pci, NULL); | ||
2804 | } | 2803 | } |
2805 | 2804 | ||
2806 | #ifdef CONFIG_PM_SLEEP | 2805 | #ifdef CONFIG_PM_SLEEP |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index b8fe40531b9c..59c8aaebb91e 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -3364,7 +3364,6 @@ static int snd_intel8x0_probe(struct pci_dev *pci, | |||
3364 | static void snd_intel8x0_remove(struct pci_dev *pci) | 3364 | static void snd_intel8x0_remove(struct pci_dev *pci) |
3365 | { | 3365 | { |
3366 | snd_card_free(pci_get_drvdata(pci)); | 3366 | snd_card_free(pci_get_drvdata(pci)); |
3367 | pci_set_drvdata(pci, NULL); | ||
3368 | } | 3367 | } |
3369 | 3368 | ||
3370 | static struct pci_driver intel8x0_driver = { | 3369 | static struct pci_driver intel8x0_driver = { |
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index fea09e8ea608..3573c1193665 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
@@ -1328,7 +1328,6 @@ static int snd_intel8x0m_probe(struct pci_dev *pci, | |||
1328 | static void snd_intel8x0m_remove(struct pci_dev *pci) | 1328 | static void snd_intel8x0m_remove(struct pci_dev *pci) |
1329 | { | 1329 | { |
1330 | snd_card_free(pci_get_drvdata(pci)); | 1330 | snd_card_free(pci_get_drvdata(pci)); |
1331 | pci_set_drvdata(pci, NULL); | ||
1332 | } | 1331 | } |
1333 | 1332 | ||
1334 | static struct pci_driver intel8x0m_driver = { | 1333 | static struct pci_driver intel8x0m_driver = { |
diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index 43b4228d9afe..9cf9829555d4 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c | |||
@@ -2473,7 +2473,6 @@ snd_korg1212_probe(struct pci_dev *pci, | |||
2473 | static void snd_korg1212_remove(struct pci_dev *pci) | 2473 | static void snd_korg1212_remove(struct pci_dev *pci) |
2474 | { | 2474 | { |
2475 | snd_card_free(pci_get_drvdata(pci)); | 2475 | snd_card_free(pci_get_drvdata(pci)); |
2476 | pci_set_drvdata(pci, NULL); | ||
2477 | } | 2476 | } |
2478 | 2477 | ||
2479 | static struct pci_driver korg1212_driver = { | 2478 | static struct pci_driver korg1212_driver = { |
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c index 322b638e8ec4..7307d97186cb 100644 --- a/sound/pci/lola/lola.c +++ b/sound/pci/lola/lola.c | |||
@@ -759,7 +759,6 @@ out_free: | |||
759 | static void lola_remove(struct pci_dev *pci) | 759 | static void lola_remove(struct pci_dev *pci) |
760 | { | 760 | { |
761 | snd_card_free(pci_get_drvdata(pci)); | 761 | snd_card_free(pci_get_drvdata(pci)); |
762 | pci_set_drvdata(pci, NULL); | ||
763 | } | 762 | } |
764 | 763 | ||
765 | /* PCI IDs */ | 764 | /* PCI IDs */ |
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index 298bc9b72991..3230e57f246c 100644 --- a/sound/pci/lx6464es/lx6464es.c +++ b/sound/pci/lx6464es/lx6464es.c | |||
@@ -1139,7 +1139,6 @@ out_free: | |||
1139 | static void snd_lx6464es_remove(struct pci_dev *pci) | 1139 | static void snd_lx6464es_remove(struct pci_dev *pci) |
1140 | { | 1140 | { |
1141 | snd_card_free(pci_get_drvdata(pci)); | 1141 | snd_card_free(pci_get_drvdata(pci)); |
1142 | pci_set_drvdata(pci, NULL); | ||
1143 | } | 1142 | } |
1144 | 1143 | ||
1145 | 1144 | ||
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index c76ac1411210..d5417360f51f 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -2775,7 +2775,6 @@ snd_m3_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2775 | static void snd_m3_remove(struct pci_dev *pci) | 2775 | static void snd_m3_remove(struct pci_dev *pci) |
2776 | { | 2776 | { |
2777 | snd_card_free(pci_get_drvdata(pci)); | 2777 | snd_card_free(pci_get_drvdata(pci)); |
2778 | pci_set_drvdata(pci, NULL); | ||
2779 | } | 2778 | } |
2780 | 2779 | ||
2781 | static struct pci_driver m3_driver = { | 2780 | static struct pci_driver m3_driver = { |
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index 934dec98e2ce..1e0f6ee193f0 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -1377,7 +1377,6 @@ static int snd_mixart_probe(struct pci_dev *pci, | |||
1377 | static void snd_mixart_remove(struct pci_dev *pci) | 1377 | static void snd_mixart_remove(struct pci_dev *pci) |
1378 | { | 1378 | { |
1379 | snd_mixart_free(pci_get_drvdata(pci)); | 1379 | snd_mixart_free(pci_get_drvdata(pci)); |
1380 | pci_set_drvdata(pci, NULL); | ||
1381 | } | 1380 | } |
1382 | 1381 | ||
1383 | static struct pci_driver mixart_driver = { | 1382 | static struct pci_driver mixart_driver = { |
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 6febedb05936..fe79fff4c6dc 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -1746,7 +1746,6 @@ static int snd_nm256_probe(struct pci_dev *pci, | |||
1746 | static void snd_nm256_remove(struct pci_dev *pci) | 1746 | static void snd_nm256_remove(struct pci_dev *pci) |
1747 | { | 1747 | { |
1748 | snd_card_free(pci_get_drvdata(pci)); | 1748 | snd_card_free(pci_get_drvdata(pci)); |
1749 | pci_set_drvdata(pci, NULL); | ||
1750 | } | 1749 | } |
1751 | 1750 | ||
1752 | 1751 | ||
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c index 9562dc63ba60..b0cb48adddc7 100644 --- a/sound/pci/oxygen/oxygen_lib.c +++ b/sound/pci/oxygen/oxygen_lib.c | |||
@@ -722,7 +722,6 @@ EXPORT_SYMBOL(oxygen_pci_probe); | |||
722 | void oxygen_pci_remove(struct pci_dev *pci) | 722 | void oxygen_pci_remove(struct pci_dev *pci) |
723 | { | 723 | { |
724 | snd_card_free(pci_get_drvdata(pci)); | 724 | snd_card_free(pci_get_drvdata(pci)); |
725 | pci_set_drvdata(pci, NULL); | ||
726 | } | 725 | } |
727 | EXPORT_SYMBOL(oxygen_pci_remove); | 726 | EXPORT_SYMBOL(oxygen_pci_remove); |
728 | 727 | ||
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index b97384ad946d..d379b284955b 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -1691,7 +1691,6 @@ static int pcxhr_probe(struct pci_dev *pci, | |||
1691 | static void pcxhr_remove(struct pci_dev *pci) | 1691 | static void pcxhr_remove(struct pci_dev *pci) |
1692 | { | 1692 | { |
1693 | pcxhr_free(pci_get_drvdata(pci)); | 1693 | pcxhr_free(pci_get_drvdata(pci)); |
1694 | pci_set_drvdata(pci, NULL); | ||
1695 | } | 1694 | } |
1696 | 1695 | ||
1697 | static struct pci_driver pcxhr_driver = { | 1696 | static struct pci_driver pcxhr_driver = { |
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index 63c1c8041554..56cc891e395e 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c | |||
@@ -2066,7 +2066,6 @@ static void snd_riptide_joystick_remove(struct pci_dev *pci) | |||
2066 | if (gameport) { | 2066 | if (gameport) { |
2067 | release_region(gameport->io, 8); | 2067 | release_region(gameport->io, 8); |
2068 | gameport_unregister_port(gameport); | 2068 | gameport_unregister_port(gameport); |
2069 | pci_set_drvdata(pci, NULL); | ||
2070 | } | 2069 | } |
2071 | } | 2070 | } |
2072 | #endif | 2071 | #endif |
@@ -2179,7 +2178,6 @@ snd_card_riptide_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2179 | static void snd_card_riptide_remove(struct pci_dev *pci) | 2178 | static void snd_card_riptide_remove(struct pci_dev *pci) |
2180 | { | 2179 | { |
2181 | snd_card_free(pci_get_drvdata(pci)); | 2180 | snd_card_free(pci_get_drvdata(pci)); |
2182 | pci_set_drvdata(pci, NULL); | ||
2183 | } | 2181 | } |
2184 | 2182 | ||
2185 | static struct pci_driver driver = { | 2183 | static struct pci_driver driver = { |
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index 0ecd4100713e..cc26346ae66b 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -1981,7 +1981,6 @@ snd_rme32_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
1981 | static void snd_rme32_remove(struct pci_dev *pci) | 1981 | static void snd_rme32_remove(struct pci_dev *pci) |
1982 | { | 1982 | { |
1983 | snd_card_free(pci_get_drvdata(pci)); | 1983 | snd_card_free(pci_get_drvdata(pci)); |
1984 | pci_set_drvdata(pci, NULL); | ||
1985 | } | 1984 | } |
1986 | 1985 | ||
1987 | static struct pci_driver rme32_driver = { | 1986 | static struct pci_driver rme32_driver = { |
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index 5fb88ac82aa9..2a8ad9d1a2ae 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -2390,7 +2390,6 @@ snd_rme96_probe(struct pci_dev *pci, | |||
2390 | static void snd_rme96_remove(struct pci_dev *pci) | 2390 | static void snd_rme96_remove(struct pci_dev *pci) |
2391 | { | 2391 | { |
2392 | snd_card_free(pci_get_drvdata(pci)); | 2392 | snd_card_free(pci_get_drvdata(pci)); |
2393 | pci_set_drvdata(pci, NULL); | ||
2394 | } | 2393 | } |
2395 | 2394 | ||
2396 | static struct pci_driver rme96_driver = { | 2395 | static struct pci_driver rme96_driver = { |
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index 94084cdb130c..4f255dfee450 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c | |||
@@ -5412,7 +5412,6 @@ static int snd_hdsp_probe(struct pci_dev *pci, | |||
5412 | static void snd_hdsp_remove(struct pci_dev *pci) | 5412 | static void snd_hdsp_remove(struct pci_dev *pci) |
5413 | { | 5413 | { |
5414 | snd_card_free(pci_get_drvdata(pci)); | 5414 | snd_card_free(pci_get_drvdata(pci)); |
5415 | pci_set_drvdata(pci, NULL); | ||
5416 | } | 5415 | } |
5417 | 5416 | ||
5418 | static struct pci_driver hdsp_driver = { | 5417 | static struct pci_driver hdsp_driver = { |
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 9ea05e956474..ef3cbc044f0c 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -6737,7 +6737,6 @@ static int snd_hdspm_probe(struct pci_dev *pci, | |||
6737 | static void snd_hdspm_remove(struct pci_dev *pci) | 6737 | static void snd_hdspm_remove(struct pci_dev *pci) |
6738 | { | 6738 | { |
6739 | snd_card_free(pci_get_drvdata(pci)); | 6739 | snd_card_free(pci_get_drvdata(pci)); |
6740 | pci_set_drvdata(pci, NULL); | ||
6741 | } | 6740 | } |
6742 | 6741 | ||
6743 | static struct pci_driver hdspm_driver = { | 6742 | static struct pci_driver hdspm_driver = { |
diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index 773a67fff4cd..b96d9e1adf6d 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c | |||
@@ -2628,7 +2628,6 @@ static int snd_rme9652_probe(struct pci_dev *pci, | |||
2628 | static void snd_rme9652_remove(struct pci_dev *pci) | 2628 | static void snd_rme9652_remove(struct pci_dev *pci) |
2629 | { | 2629 | { |
2630 | snd_card_free(pci_get_drvdata(pci)); | 2630 | snd_card_free(pci_get_drvdata(pci)); |
2631 | pci_set_drvdata(pci, NULL); | ||
2632 | } | 2631 | } |
2633 | 2632 | ||
2634 | static struct pci_driver rme9652_driver = { | 2633 | static struct pci_driver rme9652_driver = { |
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c index d59abe1682c5..f2639a0c5a65 100644 --- a/sound/pci/sis7019.c +++ b/sound/pci/sis7019.c | |||
@@ -1481,7 +1481,6 @@ error_out: | |||
1481 | static void snd_sis7019_remove(struct pci_dev *pci) | 1481 | static void snd_sis7019_remove(struct pci_dev *pci) |
1482 | { | 1482 | { |
1483 | snd_card_free(pci_get_drvdata(pci)); | 1483 | snd_card_free(pci_get_drvdata(pci)); |
1484 | pci_set_drvdata(pci, NULL); | ||
1485 | } | 1484 | } |
1486 | 1485 | ||
1487 | static struct pci_driver sis7019_driver = { | 1486 | static struct pci_driver sis7019_driver = { |
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index a2e7686e7ae3..2a46bf98af30 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -1528,7 +1528,6 @@ static int snd_sonic_probe(struct pci_dev *pci, | |||
1528 | static void snd_sonic_remove(struct pci_dev *pci) | 1528 | static void snd_sonic_remove(struct pci_dev *pci) |
1529 | { | 1529 | { |
1530 | snd_card_free(pci_get_drvdata(pci)); | 1530 | snd_card_free(pci_get_drvdata(pci)); |
1531 | pci_set_drvdata(pci, NULL); | ||
1532 | } | 1531 | } |
1533 | 1532 | ||
1534 | static struct pci_driver sonicvibes_driver = { | 1533 | static struct pci_driver sonicvibes_driver = { |
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index 1aefd6204a63..b3b588bc94c3 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c | |||
@@ -169,7 +169,6 @@ static int snd_trident_probe(struct pci_dev *pci, | |||
169 | static void snd_trident_remove(struct pci_dev *pci) | 169 | static void snd_trident_remove(struct pci_dev *pci) |
170 | { | 170 | { |
171 | snd_card_free(pci_get_drvdata(pci)); | 171 | snd_card_free(pci_get_drvdata(pci)); |
172 | pci_set_drvdata(pci, NULL); | ||
173 | } | 172 | } |
174 | 173 | ||
175 | static struct pci_driver trident_driver = { | 174 | static struct pci_driver trident_driver = { |
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index d756a3562706..3c511d0caf9e 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -2646,7 +2646,6 @@ static int snd_via82xx_probe(struct pci_dev *pci, | |||
2646 | static void snd_via82xx_remove(struct pci_dev *pci) | 2646 | static void snd_via82xx_remove(struct pci_dev *pci) |
2647 | { | 2647 | { |
2648 | snd_card_free(pci_get_drvdata(pci)); | 2648 | snd_card_free(pci_get_drvdata(pci)); |
2649 | pci_set_drvdata(pci, NULL); | ||
2650 | } | 2649 | } |
2651 | 2650 | ||
2652 | static struct pci_driver via82xx_driver = { | 2651 | static struct pci_driver via82xx_driver = { |
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index 4f5fd80b7e56..ca190283cbd7 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -1227,7 +1227,6 @@ static int snd_via82xx_probe(struct pci_dev *pci, | |||
1227 | static void snd_via82xx_remove(struct pci_dev *pci) | 1227 | static void snd_via82xx_remove(struct pci_dev *pci) |
1228 | { | 1228 | { |
1229 | snd_card_free(pci_get_drvdata(pci)); | 1229 | snd_card_free(pci_get_drvdata(pci)); |
1230 | pci_set_drvdata(pci, NULL); | ||
1231 | } | 1230 | } |
1232 | 1231 | ||
1233 | static struct pci_driver via82xx_modem_driver = { | 1232 | static struct pci_driver via82xx_modem_driver = { |
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index e2f1ab37e154..ab8a9b1bfb8e 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c | |||
@@ -254,7 +254,6 @@ static int snd_vx222_probe(struct pci_dev *pci, | |||
254 | static void snd_vx222_remove(struct pci_dev *pci) | 254 | static void snd_vx222_remove(struct pci_dev *pci) |
255 | { | 255 | { |
256 | snd_card_free(pci_get_drvdata(pci)); | 256 | snd_card_free(pci_get_drvdata(pci)); |
257 | pci_set_drvdata(pci, NULL); | ||
258 | } | 257 | } |
259 | 258 | ||
260 | #ifdef CONFIG_PM_SLEEP | 259 | #ifdef CONFIG_PM_SLEEP |
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 01c49655a3c1..e8932b2e4a5d 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -347,7 +347,6 @@ static int snd_card_ymfpci_probe(struct pci_dev *pci, | |||
347 | static void snd_card_ymfpci_remove(struct pci_dev *pci) | 347 | static void snd_card_ymfpci_remove(struct pci_dev *pci) |
348 | { | 348 | { |
349 | snd_card_free(pci_get_drvdata(pci)); | 349 | snd_card_free(pci_get_drvdata(pci)); |
350 | pci_set_drvdata(pci, NULL); | ||
351 | } | 350 | } |
352 | 351 | ||
353 | static struct pci_driver ymfpci_driver = { | 352 | static struct pci_driver ymfpci_driver = { |