diff options
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/aloop.c | 1 | ||||
-rw-r--r-- | sound/drivers/dummy.c | 1 | ||||
-rw-r--r-- | sound/drivers/ml403-ac97cr.c | 1 | ||||
-rw-r--r-- | sound/drivers/mpu401/mpu401.c | 1 | ||||
-rw-r--r-- | sound/drivers/mtpav.c | 1 | ||||
-rw-r--r-- | sound/drivers/pcsp/pcsp.c | 1 | ||||
-rw-r--r-- | sound/drivers/serial-u16550.c | 1 | ||||
-rw-r--r-- | sound/drivers/virmidi.c | 1 | ||||
-rw-r--r-- | sound/drivers/vx/vx_core.c | 2 |
9 files changed, 1 insertions, 9 deletions
diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 6f78de9c6fb6..f7589923effa 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c | |||
@@ -1183,7 +1183,6 @@ static int loopback_probe(struct platform_device *devptr) | |||
1183 | static int loopback_remove(struct platform_device *devptr) | 1183 | static int loopback_remove(struct platform_device *devptr) |
1184 | { | 1184 | { |
1185 | snd_card_free(platform_get_drvdata(devptr)); | 1185 | snd_card_free(platform_get_drvdata(devptr)); |
1186 | platform_set_drvdata(devptr, NULL); | ||
1187 | return 0; | 1186 | return 0; |
1188 | } | 1187 | } |
1189 | 1188 | ||
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index fd798f753609..11048cc744d0 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -1129,7 +1129,6 @@ static int snd_dummy_probe(struct platform_device *devptr) | |||
1129 | static int snd_dummy_remove(struct platform_device *devptr) | 1129 | static int snd_dummy_remove(struct platform_device *devptr) |
1130 | { | 1130 | { |
1131 | snd_card_free(platform_get_drvdata(devptr)); | 1131 | snd_card_free(platform_get_drvdata(devptr)); |
1132 | platform_set_drvdata(devptr, NULL); | ||
1133 | return 0; | 1132 | return 0; |
1134 | } | 1133 | } |
1135 | 1134 | ||
diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c index 8125a7e95ee4..95ea4a153ea4 100644 --- a/sound/drivers/ml403-ac97cr.c +++ b/sound/drivers/ml403-ac97cr.c | |||
@@ -1325,7 +1325,6 @@ static int snd_ml403_ac97cr_probe(struct platform_device *pfdev) | |||
1325 | static int snd_ml403_ac97cr_remove(struct platform_device *pfdev) | 1325 | static int snd_ml403_ac97cr_remove(struct platform_device *pfdev) |
1326 | { | 1326 | { |
1327 | snd_card_free(platform_get_drvdata(pfdev)); | 1327 | snd_card_free(platform_get_drvdata(pfdev)); |
1328 | platform_set_drvdata(pfdev, NULL); | ||
1329 | return 0; | 1328 | return 0; |
1330 | } | 1329 | } |
1331 | 1330 | ||
diff --git a/sound/drivers/mpu401/mpu401.c b/sound/drivers/mpu401/mpu401.c index da1a29bfc85d..90a3a7b38a2a 100644 --- a/sound/drivers/mpu401/mpu401.c +++ b/sound/drivers/mpu401/mpu401.c | |||
@@ -129,7 +129,6 @@ static int snd_mpu401_probe(struct platform_device *devptr) | |||
129 | static int snd_mpu401_remove(struct platform_device *devptr) | 129 | static int snd_mpu401_remove(struct platform_device *devptr) |
130 | { | 130 | { |
131 | snd_card_free(platform_get_drvdata(devptr)); | 131 | snd_card_free(platform_get_drvdata(devptr)); |
132 | platform_set_drvdata(devptr, NULL); | ||
133 | return 0; | 132 | return 0; |
134 | } | 133 | } |
135 | 134 | ||
diff --git a/sound/drivers/mtpav.c b/sound/drivers/mtpav.c index 9f1815b99a15..e5ec7eb27dec 100644 --- a/sound/drivers/mtpav.c +++ b/sound/drivers/mtpav.c | |||
@@ -749,7 +749,6 @@ static int snd_mtpav_probe(struct platform_device *dev) | |||
749 | static int snd_mtpav_remove(struct platform_device *devptr) | 749 | static int snd_mtpav_remove(struct platform_device *devptr) |
750 | { | 750 | { |
751 | snd_card_free(platform_get_drvdata(devptr)); | 751 | snd_card_free(platform_get_drvdata(devptr)); |
752 | platform_set_drvdata(devptr, NULL); | ||
753 | return 0; | 752 | return 0; |
754 | } | 753 | } |
755 | 754 | ||
diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c index 7a5fdb9b0afc..1c19cd7ad26e 100644 --- a/sound/drivers/pcsp/pcsp.c +++ b/sound/drivers/pcsp/pcsp.c | |||
@@ -189,7 +189,6 @@ static int pcsp_remove(struct platform_device *dev) | |||
189 | struct snd_pcsp *chip = platform_get_drvdata(dev); | 189 | struct snd_pcsp *chip = platform_get_drvdata(dev); |
190 | alsa_card_pcsp_exit(chip); | 190 | alsa_card_pcsp_exit(chip); |
191 | pcspkr_input_remove(chip->input_dev); | 191 | pcspkr_input_remove(chip->input_dev); |
192 | platform_set_drvdata(dev, NULL); | ||
193 | return 0; | 192 | return 0; |
194 | } | 193 | } |
195 | 194 | ||
diff --git a/sound/drivers/serial-u16550.c b/sound/drivers/serial-u16550.c index 7425dd8c1f09..e0bf5e77b43a 100644 --- a/sound/drivers/serial-u16550.c +++ b/sound/drivers/serial-u16550.c | |||
@@ -985,7 +985,6 @@ static int snd_serial_probe(struct platform_device *devptr) | |||
985 | static int snd_serial_remove(struct platform_device *devptr) | 985 | static int snd_serial_remove(struct platform_device *devptr) |
986 | { | 986 | { |
987 | snd_card_free(platform_get_drvdata(devptr)); | 987 | snd_card_free(platform_get_drvdata(devptr)); |
988 | platform_set_drvdata(devptr, NULL); | ||
989 | return 0; | 988 | return 0; |
990 | } | 989 | } |
991 | 990 | ||
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index cc4be88d7318..ace3879e8d96 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -132,7 +132,6 @@ static int snd_virmidi_probe(struct platform_device *devptr) | |||
132 | static int snd_virmidi_remove(struct platform_device *devptr) | 132 | static int snd_virmidi_remove(struct platform_device *devptr) |
133 | { | 133 | { |
134 | snd_card_free(platform_get_drvdata(devptr)); | 134 | snd_card_free(platform_get_drvdata(devptr)); |
135 | platform_set_drvdata(devptr, NULL); | ||
136 | return 0; | 135 | return 0; |
137 | } | 136 | } |
138 | 137 | ||
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c index c39961c11401..83596891cde4 100644 --- a/sound/drivers/vx/vx_core.c +++ b/sound/drivers/vx/vx_core.c | |||
@@ -205,7 +205,7 @@ static int vx_read_status(struct vx_core *chip, struct vx_rmh *rmh) | |||
205 | 205 | ||
206 | if (size < 1) | 206 | if (size < 1) |
207 | return 0; | 207 | return 0; |
208 | if (snd_BUG_ON(size > SIZE_MAX_STATUS)) | 208 | if (snd_BUG_ON(size >= SIZE_MAX_STATUS)) |
209 | return -EINVAL; | 209 | return -EINVAL; |
210 | 210 | ||
211 | for (i = 1; i <= size; i++) { | 211 | for (i = 1; i <= size; i++) { |