Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: isa: remove __dev* attributes

CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Bill Pemberton and committed by
Takashi Iwai
1bff292e f120a6fb

+433 -432
+9 -9
sound/isa/ad1816a/ad1816a.c
··· 94 94 #define DRIVER_NAME "snd-card-ad1816a" 95 95 96 96 97 - static int __devinit snd_card_ad1816a_pnp(int dev, struct pnp_card_link *card, 98 - const struct pnp_card_device_id *id) 97 + static int snd_card_ad1816a_pnp(int dev, struct pnp_card_link *card, 98 + const struct pnp_card_device_id *id) 99 99 { 100 100 struct pnp_dev *pdev; 101 101 int err; ··· 135 135 return 0; 136 136 } 137 137 138 - static int __devinit snd_card_ad1816a_probe(int dev, struct pnp_card_link *pcard, 139 - const struct pnp_card_device_id *pid) 138 + static int snd_card_ad1816a_probe(int dev, struct pnp_card_link *pcard, 139 + const struct pnp_card_device_id *pid) 140 140 { 141 141 int error; 142 142 struct snd_card *card; ··· 217 217 return 0; 218 218 } 219 219 220 - static unsigned int __devinitdata ad1816a_devices; 220 + static unsigned int ad1816a_devices; 221 221 222 - static int __devinit snd_ad1816a_pnp_detect(struct pnp_card_link *card, 223 - const struct pnp_card_device_id *id) 222 + static int snd_ad1816a_pnp_detect(struct pnp_card_link *card, 223 + const struct pnp_card_device_id *id) 224 224 { 225 225 static int dev; 226 226 int res; ··· 238 238 return -ENODEV; 239 239 } 240 240 241 - static void __devexit snd_ad1816a_pnp_remove(struct pnp_card_link * pcard) 241 + static void snd_ad1816a_pnp_remove(struct pnp_card_link *pcard) 242 242 { 243 243 snd_card_free(pnp_get_card_drvdata(pcard)); 244 244 pnp_set_card_drvdata(pcard, NULL); ··· 270 270 .name = "ad1816a", 271 271 .id_table = snd_ad1816a_pnpids, 272 272 .probe = snd_ad1816a_pnp_detect, 273 - .remove = __devexit_p(snd_ad1816a_pnp_remove), 273 + .remove = snd_ad1816a_pnp_remove, 274 274 #ifdef CONFIG_PM 275 275 .suspend = snd_ad1816a_pnp_suspend, 276 276 .resume = snd_ad1816a_pnp_resume,
+10 -9
sound/isa/ad1816a/ad1816a_lib.c
··· 537 537 } 538 538 #endif 539 539 540 - static int __devinit snd_ad1816a_probe(struct snd_ad1816a *chip) 540 + static int snd_ad1816a_probe(struct snd_ad1816a *chip) 541 541 { 542 542 unsigned long flags; 543 543 ··· 583 583 return snd_ad1816a_free(chip); 584 584 } 585 585 586 - static const char __devinit *snd_ad1816a_chip_id(struct snd_ad1816a *chip) 586 + static const char *snd_ad1816a_chip_id(struct snd_ad1816a *chip) 587 587 { 588 588 switch (chip->hardware) { 589 589 case AD1816A_HW_AD1816A: return "AD1816A"; ··· 596 596 } 597 597 } 598 598 599 - int __devinit snd_ad1816a_create(struct snd_card *card, 600 - unsigned long port, int irq, int dma1, int dma2, 601 - struct snd_ad1816a *chip) 599 + int snd_ad1816a_create(struct snd_card *card, 600 + unsigned long port, int irq, int dma1, int dma2, 601 + struct snd_ad1816a *chip) 602 602 { 603 603 static struct snd_device_ops ops = { 604 604 .dev_free = snd_ad1816a_dev_free, ··· 675 675 .pointer = snd_ad1816a_capture_pointer, 676 676 }; 677 677 678 - int __devinit snd_ad1816a_pcm(struct snd_ad1816a *chip, int device, struct snd_pcm **rpcm) 678 + int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device, struct snd_pcm **rpcm) 679 679 { 680 680 int error; 681 681 struct snd_pcm *pcm; ··· 702 702 return 0; 703 703 } 704 704 705 - int __devinit snd_ad1816a_timer(struct snd_ad1816a *chip, int device, struct snd_timer **rtimer) 705 + int snd_ad1816a_timer(struct snd_ad1816a *chip, int device, 706 + struct snd_timer **rtimer) 706 707 { 707 708 struct snd_timer *timer; 708 709 struct snd_timer_id tid; ··· 924 923 static const DECLARE_TLV_DB_SCALE(db_scale_5bit_12db_max, -3450, 150, 0); 925 924 static const DECLARE_TLV_DB_SCALE(db_scale_rec_gain, 0, 150, 0); 926 925 927 - static struct snd_kcontrol_new snd_ad1816a_controls[] __devinitdata = { 926 + static struct snd_kcontrol_new snd_ad1816a_controls[] = { 928 927 AD1816A_DOUBLE("Master Playback Switch", AD1816A_MASTER_ATT, 15, 7, 1, 1), 929 928 AD1816A_DOUBLE_TLV("Master Playback Volume", AD1816A_MASTER_ATT, 8, 0, 31, 1, 930 929 db_scale_5bit), ··· 970 969 AD1816A_SINGLE("3D Control - Level", AD1816A_3D_PHAT_CTRL, 0, 15, 0), 971 970 }; 972 971 973 - int __devinit snd_ad1816a_mixer(struct snd_ad1816a *chip) 972 + int snd_ad1816a_mixer(struct snd_ad1816a *chip) 974 973 { 975 974 struct snd_card *card; 976 975 unsigned int idx;
+4 -4
sound/isa/ad1848/ad1848.c
··· 64 64 module_param_array(thinkpad, bool, NULL, 0444); 65 65 MODULE_PARM_DESC(thinkpad, "Enable only for the onboard CS4248 of IBM Thinkpad 360/750/755 series."); 66 66 67 - static int __devinit snd_ad1848_match(struct device *dev, unsigned int n) 67 + static int snd_ad1848_match(struct device *dev, unsigned int n) 68 68 { 69 69 if (!enable[n]) 70 70 return 0; ··· 84 84 return 1; 85 85 } 86 86 87 - static int __devinit snd_ad1848_probe(struct device *dev, unsigned int n) 87 + static int snd_ad1848_probe(struct device *dev, unsigned int n) 88 88 { 89 89 struct snd_card *card; 90 90 struct snd_wss *chip; ··· 132 132 return error; 133 133 } 134 134 135 - static int __devexit snd_ad1848_remove(struct device *dev, unsigned int n) 135 + static int snd_ad1848_remove(struct device *dev, unsigned int n) 136 136 { 137 137 snd_card_free(dev_get_drvdata(dev)); 138 138 dev_set_drvdata(dev, NULL); ··· 164 164 static struct isa_driver snd_ad1848_driver = { 165 165 .match = snd_ad1848_match, 166 166 .probe = snd_ad1848_probe, 167 - .remove = __devexit_p(snd_ad1848_remove), 167 + .remove = snd_ad1848_remove, 168 168 #ifdef CONFIG_PM 169 169 .suspend = snd_ad1848_suspend, 170 170 .resume = snd_ad1848_resume,
+4 -4
sound/isa/adlib.c
··· 30 30 module_param_array(port, long, NULL, 0444); 31 31 MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver."); 32 32 33 - static int __devinit snd_adlib_match(struct device *dev, unsigned int n) 33 + static int snd_adlib_match(struct device *dev, unsigned int n) 34 34 { 35 35 if (!enable[n]) 36 36 return 0; ··· 47 47 release_and_free_resource(card->private_data); 48 48 } 49 49 50 - static int __devinit snd_adlib_probe(struct device *dev, unsigned int n) 50 + static int snd_adlib_probe(struct device *dev, unsigned int n) 51 51 { 52 52 struct snd_card *card; 53 53 struct snd_opl3 *opl3; ··· 98 98 return error; 99 99 } 100 100 101 - static int __devexit snd_adlib_remove(struct device *dev, unsigned int n) 101 + static int snd_adlib_remove(struct device *dev, unsigned int n) 102 102 { 103 103 snd_card_free(dev_get_drvdata(dev)); 104 104 dev_set_drvdata(dev, NULL); ··· 108 108 static struct isa_driver snd_adlib_driver = { 109 109 .match = snd_adlib_match, 110 110 .probe = snd_adlib_probe, 111 - .remove = __devexit_p(snd_adlib_remove), 111 + .remove = snd_adlib_remove, 112 112 113 113 .driver = { 114 114 .name = DEV_NAME
+11 -11
sound/isa/als100.c
··· 117 117 118 118 MODULE_DEVICE_TABLE(pnp_card, snd_als100_pnpids); 119 119 120 - static int __devinit snd_card_als100_pnp(int dev, struct snd_card_als100 *acard, 121 - struct pnp_card_link *card, 122 - const struct pnp_card_device_id *id) 120 + static int snd_card_als100_pnp(int dev, struct snd_card_als100 *acard, 121 + struct pnp_card_link *card, 122 + const struct pnp_card_device_id *id) 123 123 { 124 124 struct pnp_dev *pdev; 125 125 int err; ··· 183 183 return 0; 184 184 } 185 185 186 - static int __devinit snd_card_als100_probe(int dev, 187 - struct pnp_card_link *pcard, 188 - const struct pnp_card_device_id *pid) 186 + static int snd_card_als100_probe(int dev, 187 + struct pnp_card_link *pcard, 188 + const struct pnp_card_device_id *pid) 189 189 { 190 190 int error; 191 191 struct snd_sb *chip; ··· 286 286 return 0; 287 287 } 288 288 289 - static unsigned int __devinitdata als100_devices; 289 + static unsigned int als100_devices; 290 290 291 - static int __devinit snd_als100_pnp_detect(struct pnp_card_link *card, 292 - const struct pnp_card_device_id *id) 291 + static int snd_als100_pnp_detect(struct pnp_card_link *card, 292 + const struct pnp_card_device_id *id) 293 293 { 294 294 static int dev; 295 295 int res; ··· 307 307 return -ENODEV; 308 308 } 309 309 310 - static void __devexit snd_als100_pnp_remove(struct pnp_card_link * pcard) 310 + static void snd_als100_pnp_remove(struct pnp_card_link *pcard) 311 311 { 312 312 snd_card_free(pnp_get_card_drvdata(pcard)); 313 313 pnp_set_card_drvdata(pcard, NULL); ··· 344 344 .name = "als100", 345 345 .id_table = snd_als100_pnpids, 346 346 .probe = snd_als100_pnp_detect, 347 - .remove = __devexit_p(snd_als100_pnp_remove), 347 + .remove = snd_als100_pnp_remove, 348 348 #ifdef CONFIG_PM 349 349 .suspend = snd_als100_pnp_suspend, 350 350 .resume = snd_als100_pnp_resume,
+13 -13
sound/isa/azt2320.c
··· 99 99 100 100 #define DRIVER_NAME "snd-card-azt2320" 101 101 102 - static int __devinit snd_card_azt2320_pnp(int dev, struct snd_card_azt2320 *acard, 103 - struct pnp_card_link *card, 104 - const struct pnp_card_device_id *id) 102 + static int snd_card_azt2320_pnp(int dev, struct snd_card_azt2320 *acard, 103 + struct pnp_card_link *card, 104 + const struct pnp_card_device_id *id) 105 105 { 106 106 struct pnp_dev *pdev; 107 107 int err; ··· 147 147 } 148 148 149 149 /* same of snd_sbdsp_command by Jaroslav Kysela */ 150 - static int __devinit snd_card_azt2320_command(unsigned long port, unsigned char val) 150 + static int snd_card_azt2320_command(unsigned long port, unsigned char val) 151 151 { 152 152 int i; 153 153 unsigned long limit; ··· 161 161 return -EBUSY; 162 162 } 163 163 164 - static int __devinit snd_card_azt2320_enable_wss(unsigned long port) 164 + static int snd_card_azt2320_enable_wss(unsigned long port) 165 165 { 166 166 int error; 167 167 ··· 174 174 return 0; 175 175 } 176 176 177 - static int __devinit snd_card_azt2320_probe(int dev, 178 - struct pnp_card_link *pcard, 179 - const struct pnp_card_device_id *pid) 177 + static int snd_card_azt2320_probe(int dev, 178 + struct pnp_card_link *pcard, 179 + const struct pnp_card_device_id *pid) 180 180 { 181 181 int error; 182 182 struct snd_card *card; ··· 264 264 return 0; 265 265 } 266 266 267 - static unsigned int __devinitdata azt2320_devices; 267 + static unsigned int azt2320_devices; 268 268 269 - static int __devinit snd_azt2320_pnp_detect(struct pnp_card_link *card, 270 - const struct pnp_card_device_id *id) 269 + static int snd_azt2320_pnp_detect(struct pnp_card_link *card, 270 + const struct pnp_card_device_id *id) 271 271 { 272 272 static int dev; 273 273 int res; ··· 285 285 return -ENODEV; 286 286 } 287 287 288 - static void __devexit snd_azt2320_pnp_remove(struct pnp_card_link * pcard) 288 + static void snd_azt2320_pnp_remove(struct pnp_card_link *pcard) 289 289 { 290 290 snd_card_free(pnp_get_card_drvdata(pcard)); 291 291 pnp_set_card_drvdata(pcard, NULL); ··· 320 320 .name = "azt2320", 321 321 .id_table = snd_azt2320_pnpids, 322 322 .probe = snd_azt2320_pnp_detect, 323 - .remove = __devexit_p(snd_azt2320_pnp_remove), 323 + .remove = snd_azt2320_pnp_remove, 324 324 #ifdef CONFIG_PM 325 325 .suspend = snd_azt2320_pnp_suspend, 326 326 .resume = snd_azt2320_pnp_resume,
+4 -4
sound/isa/cmi8328.c
··· 140 140 snd_cmi8328_cfg_write(port, CFG3, cfg[2]); 141 141 } 142 142 143 - static int __devinit snd_cmi8328_mixer(struct snd_wss *chip) 143 + static int snd_cmi8328_mixer(struct snd_wss *chip) 144 144 { 145 145 struct snd_card *card; 146 146 struct snd_ctl_elem_id id1, id2; ··· 212 212 return -1; 213 213 } 214 214 215 - static int __devinit snd_cmi8328_probe(struct device *pdev, unsigned int ndev) 215 + static int snd_cmi8328_probe(struct device *pdev, unsigned int ndev) 216 216 { 217 217 struct snd_card *card; 218 218 struct snd_opl3 *opl3; ··· 401 401 return err; 402 402 } 403 403 404 - static int __devexit snd_cmi8328_remove(struct device *pdev, unsigned int dev) 404 + static int snd_cmi8328_remove(struct device *pdev, unsigned int dev) 405 405 { 406 406 struct snd_card *card = dev_get_drvdata(pdev); 407 407 struct snd_cmi8328 *cmi = card->private_data; ··· 459 459 460 460 static struct isa_driver snd_cmi8328_driver = { 461 461 .probe = snd_cmi8328_probe, 462 - .remove = __devexit_p(snd_cmi8328_remove), 462 + .remove = snd_cmi8328_remove, 463 463 #ifdef CONFIG_PM 464 464 .suspend = snd_cmi8328_suspend, 465 465 .resume = snd_cmi8328_resume,
+21 -21
sound/isa/cmi8330.c
··· 193 193 #endif 194 194 195 195 196 - static struct snd_kcontrol_new snd_cmi8330_controls[] __devinitdata = { 196 + static struct snd_kcontrol_new snd_cmi8330_controls[] = { 197 197 WSS_DOUBLE("Master Playback Volume", 0, 198 198 CMI8330_MASTVOL, CMI8330_MASTVOL, 4, 0, 15, 0), 199 199 WSS_SINGLE("Loud Playback Switch", 0, ··· 249 249 }; 250 250 251 251 #ifdef ENABLE_SB_MIXER 252 - static struct sbmix_elem cmi8330_sb_mixers[] __devinitdata = { 252 + static struct sbmix_elem cmi8330_sb_mixers[] = { 253 253 SB_DOUBLE("SB Master Playback Volume", SB_DSP4_MASTER_DEV, (SB_DSP4_MASTER_DEV + 1), 3, 3, 31), 254 254 SB_DOUBLE("Tone Control - Bass", SB_DSP4_BASS_DEV, (SB_DSP4_BASS_DEV + 1), 4, 4, 15), 255 255 SB_DOUBLE("Tone Control - Treble", SB_DSP4_TREBLE_DEV, (SB_DSP4_TREBLE_DEV + 1), 4, 4, 15), ··· 267 267 SB_SINGLE("SB Mic Auto Gain", SB_DSP4_MIC_AGC, 0, 1), 268 268 }; 269 269 270 - static unsigned char cmi8330_sb_init_values[][2] __devinitdata = { 270 + static unsigned char cmi8330_sb_init_values[][2] = { 271 271 { SB_DSP4_MASTER_DEV + 0, 0 }, 272 272 { SB_DSP4_MASTER_DEV + 1, 0 }, 273 273 { SB_DSP4_PCM_DEV + 0, 0 }, ··· 281 281 }; 282 282 283 283 284 - static int __devinit cmi8330_add_sb_mixers(struct snd_sb *chip) 284 + static int cmi8330_add_sb_mixers(struct snd_sb *chip) 285 285 { 286 286 int idx, err; 287 287 unsigned long flags; ··· 306 306 } 307 307 #endif 308 308 309 - static int __devinit snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 *acard) 309 + static int snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 *acard) 310 310 { 311 311 unsigned int idx; 312 312 int err; ··· 329 329 } 330 330 331 331 #ifdef CONFIG_PNP 332 - static int __devinit snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard, 333 - struct pnp_card_link *card, 334 - const struct pnp_card_device_id *id) 332 + static int snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard, 333 + struct pnp_card_link *card, 334 + const struct pnp_card_device_id *id) 335 335 { 336 336 struct pnp_dev *pdev; 337 337 int err; ··· 437 437 return chip->streams[SNDRV_PCM_STREAM_CAPTURE].open(substream); 438 438 } 439 439 440 - static int __devinit snd_cmi8330_pcm(struct snd_card *card, struct snd_cmi8330 *chip) 440 + static int snd_cmi8330_pcm(struct snd_card *card, struct snd_cmi8330 *chip) 441 441 { 442 442 struct snd_pcm *pcm; 443 443 const struct snd_pcm_ops *ops; ··· 532 532 return 0; 533 533 } 534 534 535 - static int __devinit snd_cmi8330_probe(struct snd_card *card, int dev) 535 + static int snd_cmi8330_probe(struct snd_card *card, int dev) 536 536 { 537 537 struct snd_cmi8330 *acard; 538 538 int i, err; ··· 613 613 return snd_card_register(card); 614 614 } 615 615 616 - static int __devinit snd_cmi8330_isa_match(struct device *pdev, 617 - unsigned int dev) 616 + static int snd_cmi8330_isa_match(struct device *pdev, 617 + unsigned int dev) 618 618 { 619 619 if (!enable[dev] || is_isapnp_selected(dev)) 620 620 return 0; ··· 629 629 return 1; 630 630 } 631 631 632 - static int __devinit snd_cmi8330_isa_probe(struct device *pdev, 633 - unsigned int dev) 632 + static int snd_cmi8330_isa_probe(struct device *pdev, 633 + unsigned int dev) 634 634 { 635 635 struct snd_card *card; 636 636 int err; ··· 647 647 return 0; 648 648 } 649 649 650 - static int __devexit snd_cmi8330_isa_remove(struct device *devptr, 651 - unsigned int dev) 650 + static int snd_cmi8330_isa_remove(struct device *devptr, 651 + unsigned int dev) 652 652 { 653 653 snd_card_free(dev_get_drvdata(devptr)); 654 654 dev_set_drvdata(devptr, NULL); ··· 673 673 static struct isa_driver snd_cmi8330_driver = { 674 674 .match = snd_cmi8330_isa_match, 675 675 .probe = snd_cmi8330_isa_probe, 676 - .remove = __devexit_p(snd_cmi8330_isa_remove), 676 + .remove = snd_cmi8330_isa_remove, 677 677 #ifdef CONFIG_PM 678 678 .suspend = snd_cmi8330_isa_suspend, 679 679 .resume = snd_cmi8330_isa_resume, ··· 685 685 686 686 687 687 #ifdef CONFIG_PNP 688 - static int __devinit snd_cmi8330_pnp_detect(struct pnp_card_link *pcard, 689 - const struct pnp_card_device_id *pid) 688 + static int snd_cmi8330_pnp_detect(struct pnp_card_link *pcard, 689 + const struct pnp_card_device_id *pid) 690 690 { 691 691 static int dev; 692 692 struct snd_card *card; ··· 717 717 return 0; 718 718 } 719 719 720 - static void __devexit snd_cmi8330_pnp_remove(struct pnp_card_link * pcard) 720 + static void snd_cmi8330_pnp_remove(struct pnp_card_link *pcard) 721 721 { 722 722 snd_card_free(pnp_get_card_drvdata(pcard)); 723 723 pnp_set_card_drvdata(pcard, NULL); ··· 740 740 .name = "cmi8330", 741 741 .id_table = snd_cmi8330_pnpids, 742 742 .probe = snd_cmi8330_pnp_detect, 743 - .remove = __devexit_p(snd_cmi8330_pnp_remove), 743 + .remove = snd_cmi8330_pnp_remove, 744 744 #ifdef CONFIG_PM 745 745 .suspend = snd_cmi8330_pnp_suspend, 746 746 .resume = snd_cmi8330_pnp_resume,
+4 -4
sound/isa/cs423x/cs4231.c
··· 68 68 module_param_array(dma2, int, NULL, 0444); 69 69 MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); 70 70 71 - static int __devinit snd_cs4231_match(struct device *dev, unsigned int n) 71 + static int snd_cs4231_match(struct device *dev, unsigned int n) 72 72 { 73 73 if (!enable[n]) 74 74 return 0; ··· 88 88 return 1; 89 89 } 90 90 91 - static int __devinit snd_cs4231_probe(struct device *dev, unsigned int n) 91 + static int snd_cs4231_probe(struct device *dev, unsigned int n) 92 92 { 93 93 struct snd_card *card; 94 94 struct snd_wss *chip; ··· 148 148 return error; 149 149 } 150 150 151 - static int __devexit snd_cs4231_remove(struct device *dev, unsigned int n) 151 + static int snd_cs4231_remove(struct device *dev, unsigned int n) 152 152 { 153 153 snd_card_free(dev_get_drvdata(dev)); 154 154 dev_set_drvdata(dev, NULL); ··· 180 180 static struct isa_driver snd_cs4231_driver = { 181 181 .match = snd_cs4231_match, 182 182 .probe = snd_cs4231_probe, 183 - .remove = __devexit_p(snd_cs4231_remove), 183 + .remove = snd_cs4231_remove, 184 184 #ifdef CONFIG_PM 185 185 .suspend = snd_cs4231_suspend, 186 186 .resume = snd_cs4231_resume,
+25 -25
sound/isa/cs423x/cs4236.c
··· 251 251 MODULE_DEVICE_TABLE(pnp_card, snd_cs423x_pnpids); 252 252 253 253 /* WSS initialization */ 254 - static int __devinit snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) 254 + static int snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) 255 255 { 256 256 if (pnp_activate_dev(pdev) < 0) { 257 257 printk(KERN_ERR IDENT " WSS PnP configure failed for WSS (out of resources?)\n"); ··· 272 272 } 273 273 274 274 /* CTRL initialization */ 275 - static int __devinit snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) 275 + static int snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) 276 276 { 277 277 if (pnp_activate_dev(pdev) < 0) { 278 278 printk(KERN_ERR IDENT " CTRL PnP configure failed for WSS (out of resources?)\n"); ··· 284 284 } 285 285 286 286 /* MPU initialization */ 287 - static int __devinit snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) 287 + static int snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) 288 288 { 289 289 if (pnp_activate_dev(pdev) < 0) { 290 290 printk(KERN_ERR IDENT " MPU401 PnP configure failed for WSS (out of resources?)\n"); ··· 303 303 return 0; 304 304 } 305 305 306 - static int __devinit snd_card_cs423x_pnp(int dev, struct snd_card_cs4236 *acard, 307 - struct pnp_dev *pdev, 308 - struct pnp_dev *cdev) 306 + static int snd_card_cs423x_pnp(int dev, struct snd_card_cs4236 *acard, 307 + struct pnp_dev *pdev, 308 + struct pnp_dev *cdev) 309 309 { 310 310 acard->wss = pdev; 311 311 if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0) ··· 317 317 return 0; 318 318 } 319 319 320 - static int __devinit snd_card_cs423x_pnpc(int dev, struct snd_card_cs4236 *acard, 321 - struct pnp_card_link *card, 322 - const struct pnp_card_device_id *id) 320 + static int snd_card_cs423x_pnpc(int dev, struct snd_card_cs4236 *acard, 321 + struct pnp_card_link *card, 322 + const struct pnp_card_device_id *id) 323 323 { 324 324 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); 325 325 if (acard->wss == NULL) ··· 378 378 return 0; 379 379 } 380 380 381 - static int __devinit snd_cs423x_probe(struct snd_card *card, int dev) 381 + static int snd_cs423x_probe(struct snd_card *card, int dev) 382 382 { 383 383 struct snd_card_cs4236 *acard; 384 384 struct snd_pcm *pcm; ··· 456 456 return snd_card_register(card); 457 457 } 458 458 459 - static int __devinit snd_cs423x_isa_match(struct device *pdev, 460 - unsigned int dev) 459 + static int snd_cs423x_isa_match(struct device *pdev, 460 + unsigned int dev) 461 461 { 462 462 if (!enable[dev] || is_isapnp_selected(dev)) 463 463 return 0; ··· 481 481 return 1; 482 482 } 483 483 484 - static int __devinit snd_cs423x_isa_probe(struct device *pdev, 485 - unsigned int dev) 484 + static int snd_cs423x_isa_probe(struct device *pdev, 485 + unsigned int dev) 486 486 { 487 487 struct snd_card *card; 488 488 int err; ··· 500 500 return 0; 501 501 } 502 502 503 - static int __devexit snd_cs423x_isa_remove(struct device *pdev, 504 - unsigned int dev) 503 + static int snd_cs423x_isa_remove(struct device *pdev, 504 + unsigned int dev) 505 505 { 506 506 snd_card_free(dev_get_drvdata(pdev)); 507 507 dev_set_drvdata(pdev, NULL); ··· 540 540 static struct isa_driver cs423x_isa_driver = { 541 541 .match = snd_cs423x_isa_match, 542 542 .probe = snd_cs423x_isa_probe, 543 - .remove = __devexit_p(snd_cs423x_isa_remove), 543 + .remove = snd_cs423x_isa_remove, 544 544 #ifdef CONFIG_PM 545 545 .suspend = snd_cs423x_isa_suspend, 546 546 .resume = snd_cs423x_isa_resume, ··· 552 552 553 553 554 554 #ifdef CONFIG_PNP 555 - static int __devinit snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, 556 - const struct pnp_device_id *id) 555 + static int snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, 556 + const struct pnp_device_id *id) 557 557 { 558 558 static int dev; 559 559 int err; ··· 597 597 return 0; 598 598 } 599 599 600 - static void __devexit snd_cs423x_pnp_remove(struct pnp_dev *pdev) 600 + static void snd_cs423x_pnp_remove(struct pnp_dev *pdev) 601 601 { 602 602 snd_card_free(pnp_get_drvdata(pdev)); 603 603 pnp_set_drvdata(pdev, NULL); ··· 619 619 .name = "cs423x-pnpbios", 620 620 .id_table = snd_cs423x_pnpbiosids, 621 621 .probe = snd_cs423x_pnpbios_detect, 622 - .remove = __devexit_p(snd_cs423x_pnp_remove), 622 + .remove = snd_cs423x_pnp_remove, 623 623 #ifdef CONFIG_PM 624 624 .suspend = snd_cs423x_pnp_suspend, 625 625 .resume = snd_cs423x_pnp_resume, 626 626 #endif 627 627 }; 628 628 629 - static int __devinit snd_cs423x_pnpc_detect(struct pnp_card_link *pcard, 630 - const struct pnp_card_device_id *pid) 629 + static int snd_cs423x_pnpc_detect(struct pnp_card_link *pcard, 630 + const struct pnp_card_device_id *pid) 631 631 { 632 632 static int dev; 633 633 struct snd_card *card; ··· 659 659 return 0; 660 660 } 661 661 662 - static void __devexit snd_cs423x_pnpc_remove(struct pnp_card_link * pcard) 662 + static void snd_cs423x_pnpc_remove(struct pnp_card_link *pcard) 663 663 { 664 664 snd_card_free(pnp_get_card_drvdata(pcard)); 665 665 pnp_set_card_drvdata(pcard, NULL); ··· 682 682 .name = CS423X_ISAPNP_DRIVER, 683 683 .id_table = snd_cs423x_pnpids, 684 684 .probe = snd_cs423x_pnpc_detect, 685 - .remove = __devexit_p(snd_cs423x_pnpc_remove), 685 + .remove = snd_cs423x_pnpc_remove, 686 686 #ifdef CONFIG_PM 687 687 .suspend = snd_cs423x_pnpc_suspend, 688 688 .resume = snd_cs423x_pnpc_resume,
+14 -14
sound/isa/es1688/es1688.c
··· 90 90 #define is_isapnp_selected(dev) 0 91 91 #endif 92 92 93 - static int __devinit snd_es1688_match(struct device *dev, unsigned int n) 93 + static int snd_es1688_match(struct device *dev, unsigned int n) 94 94 { 95 95 return enable[n] && !is_isapnp_selected(n); 96 96 } 97 97 98 - static int __devinit snd_es1688_legacy_create(struct snd_card *card, 99 - struct device *dev, unsigned int n) 98 + static int snd_es1688_legacy_create(struct snd_card *card, 99 + struct device *dev, unsigned int n) 100 100 { 101 101 struct snd_es1688 *chip = card->private_data; 102 102 static long possible_ports[] = {0x220, 0x240, 0x260}; ··· 134 134 return error; 135 135 } 136 136 137 - static int __devinit snd_es1688_probe(struct snd_card *card, unsigned int n) 137 + static int snd_es1688_probe(struct snd_card *card, unsigned int n) 138 138 { 139 139 struct snd_es1688 *chip = card->private_data; 140 140 struct snd_opl3 *opl3; ··· 182 182 return snd_card_register(card); 183 183 } 184 184 185 - static int __devinit snd_es1688_isa_probe(struct device *dev, unsigned int n) 185 + static int snd_es1688_isa_probe(struct device *dev, unsigned int n) 186 186 { 187 187 struct snd_card *card; 188 188 int error; ··· 210 210 return error; 211 211 } 212 212 213 - static int __devexit snd_es1688_isa_remove(struct device *dev, unsigned int n) 213 + static int snd_es1688_isa_remove(struct device *dev, unsigned int n) 214 214 { 215 215 snd_card_free(dev_get_drvdata(dev)); 216 216 dev_set_drvdata(dev, NULL); ··· 220 220 static struct isa_driver snd_es1688_driver = { 221 221 .match = snd_es1688_match, 222 222 .probe = snd_es1688_isa_probe, 223 - .remove = __devexit_p(snd_es1688_isa_remove), 223 + .remove = snd_es1688_isa_remove, 224 224 #if 0 /* FIXME */ 225 225 .suspend = snd_es1688_suspend, 226 226 .resume = snd_es1688_resume, ··· 233 233 static int snd_es968_pnp_is_probed; 234 234 235 235 #ifdef CONFIG_PNP 236 - static int __devinit snd_card_es968_pnp(struct snd_card *card, unsigned int n, 237 - struct pnp_card_link *pcard, 238 - const struct pnp_card_device_id *pid) 236 + static int snd_card_es968_pnp(struct snd_card *card, unsigned int n, 237 + struct pnp_card_link *pcard, 238 + const struct pnp_card_device_id *pid) 239 239 { 240 240 struct snd_es1688 *chip = card->private_data; 241 241 struct pnp_dev *pdev; ··· 258 258 mpu_irq[n], dma8[n], ES1688_HW_AUTO); 259 259 } 260 260 261 - static int __devinit snd_es968_pnp_detect(struct pnp_card_link *pcard, 262 - const struct pnp_card_device_id *pid) 261 + static int snd_es968_pnp_detect(struct pnp_card_link *pcard, 262 + const struct pnp_card_device_id *pid) 263 263 { 264 264 struct snd_card *card; 265 265 static unsigned int dev; ··· 295 295 return 0; 296 296 } 297 297 298 - static void __devexit snd_es968_pnp_remove(struct pnp_card_link * pcard) 298 + static void snd_es968_pnp_remove(struct pnp_card_link *pcard) 299 299 { 300 300 snd_card_free(pnp_get_card_drvdata(pcard)); 301 301 pnp_set_card_drvdata(pcard, NULL); ··· 338 338 .name = DEV_NAME " PnP", 339 339 .id_table = snd_es968_pnpids, 340 340 .probe = snd_es968_pnp_detect, 341 - .remove = __devexit_p(snd_es968_pnp_remove), 341 + .remove = snd_es968_pnp_remove, 342 342 #ifdef CONFIG_PM 343 343 .suspend = snd_es968_pnp_suspend, 344 344 .resume = snd_es968_pnp_resume,
+40 -40
sound/isa/es18xx.c
··· 348 348 } 349 349 350 350 351 - static int __devinit snd_es18xx_reset(struct snd_es18xx *chip) 351 + static int snd_es18xx_reset(struct snd_es18xx *chip) 352 352 { 353 353 int i; 354 354 outb(0x03, chip->port + 0x06); ··· 1363 1363 ES18XX_SINGLE("Hardware Master Volume Split", 0, 0x64, 7, 1, 0), 1364 1364 }; 1365 1365 1366 - static int __devinit snd_es18xx_config_read(struct snd_es18xx *chip, unsigned char reg) 1366 + static int snd_es18xx_config_read(struct snd_es18xx *chip, unsigned char reg) 1367 1367 { 1368 1368 int data; 1369 1369 ··· 1372 1372 return data; 1373 1373 } 1374 1374 1375 - static void __devinit snd_es18xx_config_write(struct snd_es18xx *chip, 1376 - unsigned char reg, unsigned char data) 1375 + static void snd_es18xx_config_write(struct snd_es18xx *chip, 1376 + unsigned char reg, unsigned char data) 1377 1377 { 1378 1378 /* No need for spinlocks, this function is used only in 1379 1379 otherwise protected init code */ ··· 1384 1384 #endif 1385 1385 } 1386 1386 1387 - static int __devinit snd_es18xx_initialize(struct snd_es18xx *chip, 1388 - unsigned long mpu_port, 1389 - unsigned long fm_port) 1387 + static int snd_es18xx_initialize(struct snd_es18xx *chip, 1388 + unsigned long mpu_port, 1389 + unsigned long fm_port) 1390 1390 { 1391 1391 int mask = 0; 1392 1392 ··· 1549 1549 return 0; 1550 1550 } 1551 1551 1552 - static int __devinit snd_es18xx_identify(struct snd_es18xx *chip) 1552 + static int snd_es18xx_identify(struct snd_es18xx *chip) 1553 1553 { 1554 1554 int hi,lo; 1555 1555 ··· 1618 1618 return 0; 1619 1619 } 1620 1620 1621 - static int __devinit snd_es18xx_probe(struct snd_es18xx *chip, 1622 - unsigned long mpu_port, 1623 - unsigned long fm_port) 1621 + static int snd_es18xx_probe(struct snd_es18xx *chip, 1622 + unsigned long mpu_port, 1623 + unsigned long fm_port) 1624 1624 { 1625 1625 if (snd_es18xx_identify(chip) < 0) { 1626 1626 snd_printk(KERN_ERR PFX "[0x%lx] ESS chip not found\n", chip->port); ··· 1680 1680 .pointer = snd_es18xx_capture_pointer, 1681 1681 }; 1682 1682 1683 - static int __devinit snd_es18xx_pcm(struct snd_card *card, int device, 1684 - struct snd_pcm **rpcm) 1683 + static int snd_es18xx_pcm(struct snd_card *card, int device, 1684 + struct snd_pcm **rpcm) 1685 1685 { 1686 1686 struct snd_es18xx *chip = card->private_data; 1687 1687 struct snd_pcm *pcm; ··· 1777 1777 return snd_es18xx_free(device->card); 1778 1778 } 1779 1779 1780 - static int __devinit snd_es18xx_new_device(struct snd_card *card, 1781 - unsigned long port, 1782 - unsigned long mpu_port, 1783 - unsigned long fm_port, 1784 - int irq, int dma1, int dma2) 1780 + static int snd_es18xx_new_device(struct snd_card *card, 1781 + unsigned long port, 1782 + unsigned long mpu_port, 1783 + unsigned long fm_port, 1784 + int irq, int dma1, int dma2) 1785 1785 { 1786 1786 struct snd_es18xx *chip = card->private_data; 1787 1787 static struct snd_device_ops ops = { ··· 1839 1839 return 0; 1840 1840 } 1841 1841 1842 - static int __devinit snd_es18xx_mixer(struct snd_card *card) 1842 + static int snd_es18xx_mixer(struct snd_card *card) 1843 1843 { 1844 1844 struct snd_es18xx *chip = card->private_data; 1845 1845 int err; ··· 2016 2016 MODULE_DEVICE_TABLE(pnp, snd_audiodrive_pnpbiosids); 2017 2017 2018 2018 /* PnP main device initialization */ 2019 - static int __devinit snd_audiodrive_pnp_init_main(int dev, struct pnp_dev *pdev) 2019 + static int snd_audiodrive_pnp_init_main(int dev, struct pnp_dev *pdev) 2020 2020 { 2021 2021 if (pnp_activate_dev(pdev) < 0) { 2022 2022 snd_printk(KERN_ERR PFX "PnP configure failure (out of resources?)\n"); ··· 2043 2043 return 0; 2044 2044 } 2045 2045 2046 - static int __devinit snd_audiodrive_pnp(int dev, struct snd_es18xx *chip, 2047 - struct pnp_dev *pdev) 2046 + static int snd_audiodrive_pnp(int dev, struct snd_es18xx *chip, 2047 + struct pnp_dev *pdev) 2048 2048 { 2049 2049 chip->dev = pdev; 2050 2050 if (snd_audiodrive_pnp_init_main(dev, chip->dev) < 0) ··· 2073 2073 2074 2074 MODULE_DEVICE_TABLE(pnp_card, snd_audiodrive_pnpids); 2075 2075 2076 - static int __devinit snd_audiodrive_pnpc(int dev, struct snd_es18xx *chip, 2077 - struct pnp_card_link *card, 2078 - const struct pnp_card_device_id *id) 2076 + static int snd_audiodrive_pnpc(int dev, struct snd_es18xx *chip, 2077 + struct pnp_card_link *card, 2078 + const struct pnp_card_device_id *id) 2079 2079 { 2080 2080 chip->dev = pnp_request_card_device(card, id->devs[0].id, NULL); 2081 2081 if (chip->dev == NULL) ··· 2111 2111 sizeof(struct snd_es18xx), cardp); 2112 2112 } 2113 2113 2114 - static int __devinit snd_audiodrive_probe(struct snd_card *card, int dev) 2114 + static int snd_audiodrive_probe(struct snd_card *card, int dev) 2115 2115 { 2116 2116 struct snd_es18xx *chip = card->private_data; 2117 2117 struct snd_opl3 *opl3; ··· 2169 2169 return snd_card_register(card); 2170 2170 } 2171 2171 2172 - static int __devinit snd_es18xx_isa_match(struct device *pdev, unsigned int dev) 2172 + static int snd_es18xx_isa_match(struct device *pdev, unsigned int dev) 2173 2173 { 2174 2174 return enable[dev] && !is_isapnp_selected(dev); 2175 2175 } 2176 2176 2177 - static int __devinit snd_es18xx_isa_probe1(int dev, struct device *devptr) 2177 + static int snd_es18xx_isa_probe1(int dev, struct device *devptr) 2178 2178 { 2179 2179 struct snd_card *card; 2180 2180 int err; ··· 2191 2191 return 0; 2192 2192 } 2193 2193 2194 - static int __devinit snd_es18xx_isa_probe(struct device *pdev, unsigned int dev) 2194 + static int snd_es18xx_isa_probe(struct device *pdev, unsigned int dev) 2195 2195 { 2196 2196 int err; 2197 2197 static int possible_irqs[] = {5, 9, 10, 7, 11, 12, -1}; ··· 2231 2231 } 2232 2232 } 2233 2233 2234 - static int __devexit snd_es18xx_isa_remove(struct device *devptr, 2235 - unsigned int dev) 2234 + static int snd_es18xx_isa_remove(struct device *devptr, 2235 + unsigned int dev) 2236 2236 { 2237 2237 snd_card_free(dev_get_drvdata(devptr)); 2238 2238 dev_set_drvdata(devptr, NULL); ··· 2257 2257 static struct isa_driver snd_es18xx_isa_driver = { 2258 2258 .match = snd_es18xx_isa_match, 2259 2259 .probe = snd_es18xx_isa_probe, 2260 - .remove = __devexit_p(snd_es18xx_isa_remove), 2260 + .remove = snd_es18xx_isa_remove, 2261 2261 #ifdef CONFIG_PM 2262 2262 .suspend = snd_es18xx_isa_suspend, 2263 2263 .resume = snd_es18xx_isa_resume, ··· 2269 2269 2270 2270 2271 2271 #ifdef CONFIG_PNP 2272 - static int __devinit snd_audiodrive_pnp_detect(struct pnp_dev *pdev, 2273 - const struct pnp_device_id *id) 2272 + static int snd_audiodrive_pnp_detect(struct pnp_dev *pdev, 2273 + const struct pnp_device_id *id) 2274 2274 { 2275 2275 static int dev; 2276 2276 int err; ··· 2302 2302 return 0; 2303 2303 } 2304 2304 2305 - static void __devexit snd_audiodrive_pnp_remove(struct pnp_dev * pdev) 2305 + static void snd_audiodrive_pnp_remove(struct pnp_dev *pdev) 2306 2306 { 2307 2307 snd_card_free(pnp_get_drvdata(pdev)); 2308 2308 pnp_set_drvdata(pdev, NULL); ··· 2323 2323 .name = "es18xx-pnpbios", 2324 2324 .id_table = snd_audiodrive_pnpbiosids, 2325 2325 .probe = snd_audiodrive_pnp_detect, 2326 - .remove = __devexit_p(snd_audiodrive_pnp_remove), 2326 + .remove = snd_audiodrive_pnp_remove, 2327 2327 #ifdef CONFIG_PM 2328 2328 .suspend = snd_audiodrive_pnp_suspend, 2329 2329 .resume = snd_audiodrive_pnp_resume, 2330 2330 #endif 2331 2331 }; 2332 2332 2333 - static int __devinit snd_audiodrive_pnpc_detect(struct pnp_card_link *pcard, 2334 - const struct pnp_card_device_id *pid) 2333 + static int snd_audiodrive_pnpc_detect(struct pnp_card_link *pcard, 2334 + const struct pnp_card_device_id *pid) 2335 2335 { 2336 2336 static int dev; 2337 2337 struct snd_card *card; ··· 2363 2363 return 0; 2364 2364 } 2365 2365 2366 - static void __devexit snd_audiodrive_pnpc_remove(struct pnp_card_link * pcard) 2366 + static void snd_audiodrive_pnpc_remove(struct pnp_card_link *pcard) 2367 2367 { 2368 2368 snd_card_free(pnp_get_card_drvdata(pcard)); 2369 2369 pnp_set_card_drvdata(pcard, NULL); ··· 2387 2387 .name = "es18xx", 2388 2388 .id_table = snd_audiodrive_pnpids, 2389 2389 .probe = snd_audiodrive_pnpc_detect, 2390 - .remove = __devexit_p(snd_audiodrive_pnpc_remove), 2390 + .remove = snd_audiodrive_pnpc_remove, 2391 2391 #ifdef CONFIG_PM 2392 2392 .suspend = snd_audiodrive_pnpc_suspend, 2393 2393 .resume = snd_audiodrive_pnpc_resume,
+13 -13
sound/isa/galaxy/galaxy.c
··· 84 84 85 85 #define DSP_COMMAND_GET_VERSION 0xe1 86 86 87 - static int __devinit dsp_get_byte(void __iomem *port, u8 *val) 87 + static int dsp_get_byte(void __iomem *port, u8 *val) 88 88 { 89 89 int loops = 1000; 90 90 ··· 97 97 return 0; 98 98 } 99 99 100 - static int __devinit dsp_reset(void __iomem *port) 100 + static int dsp_reset(void __iomem *port) 101 101 { 102 102 u8 val; 103 103 ··· 111 111 return 0; 112 112 } 113 113 114 - static int __devinit dsp_command(void __iomem *port, u8 cmd) 114 + static int dsp_command(void __iomem *port, u8 cmd) 115 115 { 116 116 int loops = 1000; 117 117 ··· 124 124 return 0; 125 125 } 126 126 127 - static int __devinit dsp_get_version(void __iomem *port, u8 *major, u8 *minor) 127 + static int dsp_get_version(void __iomem *port, u8 *major, u8 *minor) 128 128 { 129 129 int err; 130 130 ··· 161 161 162 162 #define WSS_SIGNATURE 4 163 163 164 - static int __devinit wss_detect(void __iomem *wss_port) 164 + static int wss_detect(void __iomem *wss_port) 165 165 { 166 166 if ((ioread8(wss_port + WSS_PORT_SIGNATURE) & 0x3f) != WSS_SIGNATURE) 167 167 return -ENODEV; ··· 204 204 static u32 config[SNDRV_CARDS]; 205 205 static u8 wss_config[SNDRV_CARDS]; 206 206 207 - static int __devinit snd_galaxy_match(struct device *dev, unsigned int n) 207 + static int snd_galaxy_match(struct device *dev, unsigned int n) 208 208 { 209 209 if (!enable[n]) 210 210 return 0; ··· 379 379 return 1; 380 380 } 381 381 382 - static int __devinit galaxy_init(struct snd_galaxy *galaxy, u8 *type) 382 + static int galaxy_init(struct snd_galaxy *galaxy, u8 *type) 383 383 { 384 384 u8 major; 385 385 u8 minor; ··· 411 411 return 0; 412 412 } 413 413 414 - static int __devinit galaxy_set_mode(struct snd_galaxy *galaxy, u8 mode) 414 + static int galaxy_set_mode(struct snd_galaxy *galaxy, u8 mode) 415 415 { 416 416 int err; 417 417 ··· 449 449 msleep(10); 450 450 } 451 451 452 - static void __devinit galaxy_config(struct snd_galaxy *galaxy, u32 config) 452 + static void galaxy_config(struct snd_galaxy *galaxy, u32 config) 453 453 { 454 454 int i; 455 455 ··· 461 461 galaxy_set_config(galaxy, config); 462 462 } 463 463 464 - static int __devinit galaxy_wss_config(struct snd_galaxy *galaxy, u8 wss_config) 464 + static int galaxy_wss_config(struct snd_galaxy *galaxy, u8 wss_config) 465 465 { 466 466 int err; 467 467 ··· 498 498 } 499 499 } 500 500 501 - static int __devinit snd_galaxy_probe(struct device *dev, unsigned int n) 501 + static int snd_galaxy_probe(struct device *dev, unsigned int n) 502 502 { 503 503 struct snd_galaxy *galaxy; 504 504 struct snd_wss *chip; ··· 620 620 return err; 621 621 } 622 622 623 - static int __devexit snd_galaxy_remove(struct device *dev, unsigned int n) 623 + static int snd_galaxy_remove(struct device *dev, unsigned int n) 624 624 { 625 625 snd_card_free(dev_get_drvdata(dev)); 626 626 dev_set_drvdata(dev, NULL); ··· 630 630 static struct isa_driver snd_galaxy_driver = { 631 631 .match = snd_galaxy_match, 632 632 .probe = snd_galaxy_probe, 633 - .remove = __devexit_p(snd_galaxy_remove), 633 + .remove = snd_galaxy_remove, 634 634 635 635 .driver = { 636 636 .name = DEV_NAME
+8 -7
sound/isa/gus/gusclassic.c
··· 73 73 module_param_array(pcm_channels, int, NULL, 0444); 74 74 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver."); 75 75 76 - static int __devinit snd_gusclassic_match(struct device *dev, unsigned int n) 76 + static int snd_gusclassic_match(struct device *dev, unsigned int n) 77 77 { 78 78 return enable[n]; 79 79 } 80 80 81 - static int __devinit snd_gusclassic_create(struct snd_card *card, 82 - struct device *dev, unsigned int n, struct snd_gus_card **rgus) 81 + static int snd_gusclassic_create(struct snd_card *card, 82 + struct device *dev, unsigned int n, 83 + struct snd_gus_card **rgus) 83 84 { 84 85 static long possible_ports[] = {0x220, 0x230, 0x240, 0x250, 0x260}; 85 86 static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, 4, -1}; ··· 124 123 return error; 125 124 } 126 125 127 - static int __devinit snd_gusclassic_detect(struct snd_gus_card *gus) 126 + static int snd_gusclassic_detect(struct snd_gus_card *gus) 128 127 { 129 128 unsigned char d; 130 129 ··· 143 142 return 0; 144 143 } 145 144 146 - static int __devinit snd_gusclassic_probe(struct device *dev, unsigned int n) 145 + static int snd_gusclassic_probe(struct device *dev, unsigned int n) 147 146 { 148 147 struct snd_card *card; 149 148 struct snd_gus_card *gus; ··· 212 211 return error; 213 212 } 214 213 215 - static int __devexit snd_gusclassic_remove(struct device *dev, unsigned int n) 214 + static int snd_gusclassic_remove(struct device *dev, unsigned int n) 216 215 { 217 216 snd_card_free(dev_get_drvdata(dev)); 218 217 dev_set_drvdata(dev, NULL); ··· 222 221 static struct isa_driver snd_gusclassic_driver = { 223 222 .match = snd_gusclassic_match, 224 223 .probe = snd_gusclassic_probe, 225 - .remove = __devexit_p(snd_gusclassic_remove), 224 + .remove = snd_gusclassic_remove, 226 225 #if 0 /* FIXME */ 227 226 .suspend = snd_gusclassic_suspend, 228 227 .remove = snd_gusclassic_remove,
+13 -11
sound/isa/gus/gusextreme.c
··· 89 89 module_param_array(pcm_channels, int, NULL, 0444); 90 90 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver."); 91 91 92 - static int __devinit snd_gusextreme_match(struct device *dev, unsigned int n) 92 + static int snd_gusextreme_match(struct device *dev, unsigned int n) 93 93 { 94 94 return enable[n]; 95 95 } 96 96 97 - static int __devinit snd_gusextreme_es1688_create(struct snd_card *card, 98 - struct snd_es1688 *chip, struct device *dev, unsigned int n) 97 + static int snd_gusextreme_es1688_create(struct snd_card *card, 98 + struct snd_es1688 *chip, 99 + struct device *dev, unsigned int n) 99 100 { 100 101 static long possible_ports[] = {0x220, 0x240, 0x260}; 101 102 static int possible_irqs[] = {5, 9, 10, 7, -1}; ··· 133 132 return error; 134 133 } 135 134 136 - static int __devinit snd_gusextreme_gus_card_create(struct snd_card *card, 137 - struct device *dev, unsigned int n, struct snd_gus_card **rgus) 135 + static int snd_gusextreme_gus_card_create(struct snd_card *card, 136 + struct device *dev, unsigned int n, 137 + struct snd_gus_card **rgus) 138 138 { 139 139 static int possible_irqs[] = {11, 12, 15, 9, 5, 7, 3, -1}; 140 140 static int possible_dmas[] = {5, 6, 7, 3, 1, -1}; ··· 158 156 0, channels[n], pcm_channels[n], 0, rgus); 159 157 } 160 158 161 - static int __devinit snd_gusextreme_detect(struct snd_gus_card *gus, 162 - struct snd_es1688 *es1688) 159 + static int snd_gusextreme_detect(struct snd_gus_card *gus, 160 + struct snd_es1688 *es1688) 163 161 { 164 162 unsigned long flags; 165 163 unsigned char d; ··· 208 206 return 0; 209 207 } 210 208 211 - static int __devinit snd_gusextreme_mixer(struct snd_card *card) 209 + static int snd_gusextreme_mixer(struct snd_card *card) 212 210 { 213 211 struct snd_ctl_elem_id id1, id2; 214 212 int error; ··· 234 232 return 0; 235 233 } 236 234 237 - static int __devinit snd_gusextreme_probe(struct device *dev, unsigned int n) 235 + static int snd_gusextreme_probe(struct device *dev, unsigned int n) 238 236 { 239 237 struct snd_card *card; 240 238 struct snd_gus_card *gus; ··· 341 339 return error; 342 340 } 343 341 344 - static int __devexit snd_gusextreme_remove(struct device *dev, unsigned int n) 342 + static int snd_gusextreme_remove(struct device *dev, unsigned int n) 345 343 { 346 344 snd_card_free(dev_get_drvdata(dev)); 347 345 dev_set_drvdata(dev, NULL); ··· 351 349 static struct isa_driver snd_gusextreme_driver = { 352 350 .match = snd_gusextreme_match, 353 351 .probe = snd_gusextreme_probe, 354 - .remove = __devexit_p(snd_gusextreme_remove), 352 + .remove = snd_gusextreme_remove, 355 353 #if 0 /* FIXME */ 356 354 .suspend = snd_gusextreme_suspend, 357 355 .resume = snd_gusextreme_resume,
+8 -8
sound/isa/gus/gusmax.c
··· 82 82 83 83 #define PFX "gusmax: " 84 84 85 - static int __devinit snd_gusmax_detect(struct snd_gus_card * gus) 85 + static int snd_gusmax_detect(struct snd_gus_card *gus) 86 86 { 87 87 unsigned char d; 88 88 ··· 124 124 return IRQ_RETVAL(handled); 125 125 } 126 126 127 - static void __devinit snd_gusmax_init(int dev, struct snd_card *card, 128 - struct snd_gus_card * gus) 127 + static void snd_gusmax_init(int dev, struct snd_card *card, 128 + struct snd_gus_card *gus) 129 129 { 130 130 gus->equal_irq = 1; 131 131 gus->codec_flag = 1; ··· 140 140 outb(gus->max_cntrl_val, GUSP(gus, MAXCNTRLPORT)); 141 141 } 142 142 143 - static int __devinit snd_gusmax_mixer(struct snd_wss *chip) 143 + static int snd_gusmax_mixer(struct snd_wss *chip) 144 144 { 145 145 struct snd_card *card = chip->card; 146 146 struct snd_ctl_elem_id id1, id2; ··· 199 199 free_irq(maxcard->irq, (void *)maxcard); 200 200 } 201 201 202 - static int __devinit snd_gusmax_match(struct device *pdev, unsigned int dev) 202 + static int snd_gusmax_match(struct device *pdev, unsigned int dev) 203 203 { 204 204 return enable[dev]; 205 205 } 206 206 207 - static int __devinit snd_gusmax_probe(struct device *pdev, unsigned int dev) 207 + static int snd_gusmax_probe(struct device *pdev, unsigned int dev) 208 208 { 209 209 static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1}; 210 210 static int possible_dmas[] = {5, 6, 7, 1, 3, -1}; ··· 354 354 return err; 355 355 } 356 356 357 - static int __devexit snd_gusmax_remove(struct device *devptr, unsigned int dev) 357 + static int snd_gusmax_remove(struct device *devptr, unsigned int dev) 358 358 { 359 359 snd_card_free(dev_get_drvdata(devptr)); 360 360 dev_set_drvdata(devptr, NULL); ··· 366 366 static struct isa_driver snd_gusmax_driver = { 367 367 .match = snd_gusmax_match, 368 368 .probe = snd_gusmax_probe, 369 - .remove = __devexit_p(snd_gusmax_remove), 369 + .remove = snd_gusmax_remove, 370 370 /* FIXME: suspend/resume */ 371 371 .driver = { 372 372 .name = DEV_NAME
+27 -27
sound/isa/gus/interwave.c
··· 207 207 .getdata = snd_interwave_i2c_getdataline, 208 208 }; 209 209 210 - static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard, 211 - struct snd_gus_card * gus, int dev, 212 - struct snd_i2c_bus **rbus) 210 + static int snd_interwave_detect_stb(struct snd_interwave *iwcard, 211 + struct snd_gus_card *gus, int dev, 212 + struct snd_i2c_bus **rbus) 213 213 { 214 214 unsigned long port; 215 215 struct snd_i2c_bus *bus; ··· 249 249 } 250 250 #endif 251 251 252 - static int __devinit snd_interwave_detect(struct snd_interwave *iwcard, 253 - struct snd_gus_card * gus, 254 - int dev 252 + static int snd_interwave_detect(struct snd_interwave *iwcard, 253 + struct snd_gus_card *gus, 254 + int dev 255 255 #ifdef SNDRV_STB 256 - , struct snd_i2c_bus **rbus 256 + , struct snd_i2c_bus **rbus 257 257 #endif 258 258 ) 259 259 { ··· 318 318 return IRQ_RETVAL(handled); 319 319 } 320 320 321 - static void __devinit snd_interwave_reset(struct snd_gus_card * gus) 321 + static void snd_interwave_reset(struct snd_gus_card *gus) 322 322 { 323 323 snd_gf1_write8(gus, SNDRV_GF1_GB_RESET, 0x00); 324 324 udelay(160); ··· 326 326 udelay(160); 327 327 } 328 328 329 - static void __devinit snd_interwave_bank_sizes(struct snd_gus_card * gus, int *sizes) 329 + static void snd_interwave_bank_sizes(struct snd_gus_card *gus, int *sizes) 330 330 { 331 331 unsigned int idx; 332 332 unsigned int local; ··· 377 377 /* 511 */ unsigned char csum; 378 378 }; 379 379 380 - static void __devinit snd_interwave_detect_memory(struct snd_gus_card * gus) 380 + static void snd_interwave_detect_memory(struct snd_gus_card *gus) 381 381 { 382 382 static unsigned int lmc[13] = 383 383 { ··· 475 475 snd_interwave_reset(gus); 476 476 } 477 477 478 - static void __devinit snd_interwave_init(int dev, struct snd_gus_card * gus) 478 + static void snd_interwave_init(int dev, struct snd_gus_card *gus) 479 479 { 480 480 unsigned long flags; 481 481 ··· 508 508 CS4231_LEFT_MIC_INPUT, CS4231_RIGHT_MIC_INPUT, 0, 0, 31, 1) 509 509 }; 510 510 511 - static int __devinit snd_interwave_mixer(struct snd_wss *chip) 511 + static int snd_interwave_mixer(struct snd_wss *chip) 512 512 { 513 513 struct snd_card *card = chip->card; 514 514 struct snd_ctl_elem_id id1, id2; ··· 558 558 559 559 #ifdef CONFIG_PNP 560 560 561 - static int __devinit snd_interwave_pnp(int dev, struct snd_interwave *iwcard, 562 - struct pnp_card_link *card, 563 - const struct pnp_card_device_id *id) 561 + static int snd_interwave_pnp(int dev, struct snd_interwave *iwcard, 562 + struct pnp_card_link *card, 563 + const struct pnp_card_device_id *id) 564 564 { 565 565 struct pnp_dev *pdev; 566 566 int err; ··· 644 644 return 0; 645 645 } 646 646 647 - static int __devinit snd_interwave_probe(struct snd_card *card, int dev) 647 + static int snd_interwave_probe(struct snd_card *card, int dev) 648 648 { 649 649 int xirq, xdma1, xdma2; 650 650 struct snd_interwave *iwcard = card->private_data; ··· 775 775 return 0; 776 776 } 777 777 778 - static int __devinit snd_interwave_isa_probe1(int dev, struct device *devptr) 778 + static int snd_interwave_isa_probe1(int dev, struct device *devptr) 779 779 { 780 780 struct snd_card *card; 781 781 int err; ··· 793 793 return 0; 794 794 } 795 795 796 - static int __devinit snd_interwave_isa_match(struct device *pdev, 797 - unsigned int dev) 796 + static int snd_interwave_isa_match(struct device *pdev, 797 + unsigned int dev) 798 798 { 799 799 if (!enable[dev]) 800 800 return 0; ··· 805 805 return 1; 806 806 } 807 807 808 - static int __devinit snd_interwave_isa_probe(struct device *pdev, 809 - unsigned int dev) 808 + static int snd_interwave_isa_probe(struct device *pdev, 809 + unsigned int dev) 810 810 { 811 811 int err; 812 812 static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1}; ··· 846 846 } 847 847 } 848 848 849 - static int __devexit snd_interwave_isa_remove(struct device *devptr, unsigned int dev) 849 + static int snd_interwave_isa_remove(struct device *devptr, unsigned int dev) 850 850 { 851 851 snd_card_free(dev_get_drvdata(devptr)); 852 852 dev_set_drvdata(devptr, NULL); ··· 856 856 static struct isa_driver snd_interwave_driver = { 857 857 .match = snd_interwave_isa_match, 858 858 .probe = snd_interwave_isa_probe, 859 - .remove = __devexit_p(snd_interwave_isa_remove), 859 + .remove = snd_interwave_isa_remove, 860 860 /* FIXME: suspend,resume */ 861 861 .driver = { 862 862 .name = INTERWAVE_DRIVER ··· 864 864 }; 865 865 866 866 #ifdef CONFIG_PNP 867 - static int __devinit snd_interwave_pnp_detect(struct pnp_card_link *pcard, 868 - const struct pnp_card_device_id *pid) 867 + static int snd_interwave_pnp_detect(struct pnp_card_link *pcard, 868 + const struct pnp_card_device_id *pid) 869 869 { 870 870 static int dev; 871 871 struct snd_card *card; ··· 896 896 return 0; 897 897 } 898 898 899 - static void __devexit snd_interwave_pnp_remove(struct pnp_card_link * pcard) 899 + static void snd_interwave_pnp_remove(struct pnp_card_link *pcard) 900 900 { 901 901 snd_card_free(pnp_get_card_drvdata(pcard)); 902 902 pnp_set_card_drvdata(pcard, NULL); ··· 907 907 .name = INTERWAVE_PNP_DRIVER, 908 908 .id_table = snd_interwave_pnpids, 909 909 .probe = snd_interwave_pnp_detect, 910 - .remove = __devexit_p(snd_interwave_pnp_remove), 910 + .remove = snd_interwave_pnp_remove, 911 911 /* FIXME: suspend,resume */ 912 912 }; 913 913
+1 -1
sound/isa/msnd/msnd.h
··· 303 303 void snd_msndmidi_input_read(void *mpu); 304 304 305 305 void snd_msndmix_setup(struct snd_msnd *chip); 306 - int __devinit snd_msndmix_new(struct snd_card *card); 306 + int snd_msndmix_new(struct snd_card *card); 307 307 int snd_msndmix_force_recsrc(struct snd_msnd *chip, int recsrc); 308 308 #endif /* __MSND_H */
+22 -22
sound/isa/msnd/msnd_pinnacle.c
··· 78 78 # define LOGNAME "snd_msnd_pinnacle" 79 79 #endif 80 80 81 - static void __devinit set_default_audio_parameters(struct snd_msnd *chip) 81 + static void set_default_audio_parameters(struct snd_msnd *chip) 82 82 { 83 83 chip->play_sample_size = DEFSAMPLESIZE; 84 84 chip->play_sample_rate = DEFSAMPLERATE; ··· 213 213 return -EIO; 214 214 } 215 215 216 - static int __devinit snd_msnd_probe(struct snd_card *card) 216 + static int snd_msnd_probe(struct snd_card *card) 217 217 { 218 218 struct snd_msnd *chip = card->private_data; 219 219 unsigned char info; ··· 497 497 return snd_msnd_send_dsp_cmd(chip, cmd); 498 498 } 499 499 500 - static int __devinit snd_msnd_calibrate_adc(struct snd_msnd *chip, u16 srate) 500 + static int snd_msnd_calibrate_adc(struct snd_msnd *chip, u16 srate) 501 501 { 502 502 snd_printdd("snd_msnd_calibrate_adc(%i)\n", srate); 503 503 writew(srate, chip->SMA + SMA_wCalFreqAtoD); ··· 535 535 static long mpu_io[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; 536 536 static int mpu_irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; 537 537 538 - static int __devinit snd_msnd_attach(struct snd_card *card) 538 + static int snd_msnd_attach(struct snd_card *card) 539 539 { 540 540 struct snd_msnd *chip = card->private_data; 541 541 int err; ··· 634 634 } 635 635 636 636 637 - static void __devexit snd_msnd_unload(struct snd_card *card) 637 + static void snd_msnd_unload(struct snd_card *card) 638 638 { 639 639 struct snd_msnd *chip = card->private_data; 640 640 ··· 649 649 650 650 /* Pinnacle/Fiji Logical Device Configuration */ 651 651 652 - static int __devinit snd_msnd_write_cfg(int cfg, int reg, int value) 652 + static int snd_msnd_write_cfg(int cfg, int reg, int value) 653 653 { 654 654 outb(reg, cfg); 655 655 outb(value, cfg + 1); ··· 660 660 return 0; 661 661 } 662 662 663 - static int __devinit snd_msnd_write_cfg_io0(int cfg, int num, u16 io) 663 + static int snd_msnd_write_cfg_io0(int cfg, int num, u16 io) 664 664 { 665 665 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) 666 666 return -EIO; ··· 671 671 return 0; 672 672 } 673 673 674 - static int __devinit snd_msnd_write_cfg_io1(int cfg, int num, u16 io) 674 + static int snd_msnd_write_cfg_io1(int cfg, int num, u16 io) 675 675 { 676 676 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) 677 677 return -EIO; ··· 682 682 return 0; 683 683 } 684 684 685 - static int __devinit snd_msnd_write_cfg_irq(int cfg, int num, u16 irq) 685 + static int snd_msnd_write_cfg_irq(int cfg, int num, u16 irq) 686 686 { 687 687 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) 688 688 return -EIO; ··· 693 693 return 0; 694 694 } 695 695 696 - static int __devinit snd_msnd_write_cfg_mem(int cfg, int num, int mem) 696 + static int snd_msnd_write_cfg_mem(int cfg, int num, int mem) 697 697 { 698 698 u16 wmem; 699 699 ··· 711 711 return 0; 712 712 } 713 713 714 - static int __devinit snd_msnd_activate_logical(int cfg, int num) 714 + static int snd_msnd_activate_logical(int cfg, int num) 715 715 { 716 716 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) 717 717 return -EIO; ··· 720 720 return 0; 721 721 } 722 722 723 - static int __devinit snd_msnd_write_cfg_logical(int cfg, int num, u16 io0, 724 - u16 io1, u16 irq, int mem) 723 + static int snd_msnd_write_cfg_logical(int cfg, int num, u16 io0, 724 + u16 io1, u16 irq, int mem) 725 725 { 726 726 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) 727 727 return -EIO; ··· 738 738 return 0; 739 739 } 740 740 741 - static int __devinit snd_msnd_pinnacle_cfg_reset(int cfg) 741 + static int snd_msnd_pinnacle_cfg_reset(int cfg) 742 742 { 743 743 int i; 744 744 ··· 818 818 #endif 819 819 820 820 821 - static int __devinit snd_msnd_isa_match(struct device *pdev, unsigned int i) 821 + static int snd_msnd_isa_match(struct device *pdev, unsigned int i) 822 822 { 823 823 if (io[i] == SNDRV_AUTO_PORT) 824 824 return 0; ··· 888 888 return 1; 889 889 } 890 890 891 - static int __devinit snd_msnd_isa_probe(struct device *pdev, unsigned int idx) 891 + static int snd_msnd_isa_probe(struct device *pdev, unsigned int idx) 892 892 { 893 893 int err; 894 894 struct snd_card *card; ··· 1061 1061 #endif 1062 1062 } 1063 1063 1064 - static int __devexit snd_msnd_isa_remove(struct device *pdev, unsigned int dev) 1064 + static int snd_msnd_isa_remove(struct device *pdev, unsigned int dev) 1065 1065 { 1066 1066 snd_msnd_unload(dev_get_drvdata(pdev)); 1067 1067 dev_set_drvdata(pdev, NULL); ··· 1073 1073 static struct isa_driver snd_msnd_driver = { 1074 1074 .match = snd_msnd_isa_match, 1075 1075 .probe = snd_msnd_isa_probe, 1076 - .remove = __devexit_p(snd_msnd_isa_remove), 1076 + .remove = snd_msnd_isa_remove, 1077 1077 /* FIXME: suspend, resume */ 1078 1078 .driver = { 1079 1079 .name = DEV_NAME ··· 1081 1081 }; 1082 1082 1083 1083 #ifdef CONFIG_PNP 1084 - static int __devinit snd_msnd_pnp_detect(struct pnp_card_link *pcard, 1085 - const struct pnp_card_device_id *pid) 1084 + static int snd_msnd_pnp_detect(struct pnp_card_link *pcard, 1085 + const struct pnp_card_device_id *pid) 1086 1086 { 1087 1087 static int idx; 1088 1088 struct pnp_dev *pnp_dev; ··· 1185 1185 return ret; 1186 1186 } 1187 1187 1188 - static void __devexit snd_msnd_pnp_remove(struct pnp_card_link *pcard) 1188 + static void snd_msnd_pnp_remove(struct pnp_card_link *pcard) 1189 1189 { 1190 1190 snd_msnd_unload(pnp_get_card_drvdata(pcard)); 1191 1191 pnp_set_card_drvdata(pcard, NULL); ··· 1207 1207 .name = "msnd_pinnacle", 1208 1208 .id_table = msnd_pnpids, 1209 1209 .probe = snd_msnd_pnp_detect, 1210 - .remove = __devexit_p(snd_msnd_pnp_remove), 1210 + .remove = snd_msnd_pnp_remove, 1211 1211 }; 1212 1212 #endif /* CONFIG_PNP */ 1213 1213
+1 -1
sound/isa/msnd/msnd_pinnacle_mixer.c
··· 302 302 }; 303 303 304 304 305 - int __devinit snd_msndmix_new(struct snd_card *card) 305 + int snd_msndmix_new(struct snd_card *card) 306 306 { 307 307 struct snd_msnd *chip = card->private_data; 308 308 unsigned int idx;
+20 -20
sound/isa/opl3sa2.c
··· 221 221 spin_unlock_irqrestore(&chip->reg_lock, flags); 222 222 } 223 223 224 - static int __devinit snd_opl3sa2_detect(struct snd_card *card) 224 + static int snd_opl3sa2_detect(struct snd_card *card) 225 225 { 226 226 struct snd_opl3sa2 *chip = card->private_data; 227 227 unsigned long port; ··· 496 496 chip->master_volume = NULL; 497 497 } 498 498 499 - static int __devinit snd_opl3sa2_mixer(struct snd_card *card) 499 + static int snd_opl3sa2_mixer(struct snd_card *card) 500 500 { 501 501 struct snd_opl3sa2 *chip = card->private_data; 502 502 struct snd_ctl_elem_id id1, id2; ··· 596 596 #endif /* CONFIG_PM */ 597 597 598 598 #ifdef CONFIG_PNP 599 - static int __devinit snd_opl3sa2_pnp(int dev, struct snd_opl3sa2 *chip, 600 - struct pnp_dev *pdev) 599 + static int snd_opl3sa2_pnp(int dev, struct snd_opl3sa2 *chip, 600 + struct pnp_dev *pdev) 601 601 { 602 602 if (pnp_activate_dev(pdev) < 0) { 603 603 snd_printk(KERN_ERR "PnP configure failure (out of resources?)\n"); ··· 647 647 return 0; 648 648 } 649 649 650 - static int __devinit snd_opl3sa2_probe(struct snd_card *card, int dev) 650 + static int snd_opl3sa2_probe(struct snd_card *card, int dev) 651 651 { 652 652 int xirq, xdma1, xdma2; 653 653 struct snd_opl3sa2 *chip; ··· 721 721 } 722 722 723 723 #ifdef CONFIG_PNP 724 - static int __devinit snd_opl3sa2_pnp_detect(struct pnp_dev *pdev, 725 - const struct pnp_device_id *id) 724 + static int snd_opl3sa2_pnp_detect(struct pnp_dev *pdev, 725 + const struct pnp_device_id *id) 726 726 { 727 727 static int dev; 728 728 int err; ··· 754 754 return 0; 755 755 } 756 756 757 - static void __devexit snd_opl3sa2_pnp_remove(struct pnp_dev * pdev) 757 + static void snd_opl3sa2_pnp_remove(struct pnp_dev *pdev) 758 758 { 759 759 snd_card_free(pnp_get_drvdata(pdev)); 760 760 pnp_set_drvdata(pdev, NULL); ··· 775 775 .name = "snd-opl3sa2-pnpbios", 776 776 .id_table = snd_opl3sa2_pnpbiosids, 777 777 .probe = snd_opl3sa2_pnp_detect, 778 - .remove = __devexit_p(snd_opl3sa2_pnp_remove), 778 + .remove = snd_opl3sa2_pnp_remove, 779 779 #ifdef CONFIG_PM 780 780 .suspend = snd_opl3sa2_pnp_suspend, 781 781 .resume = snd_opl3sa2_pnp_resume, 782 782 #endif 783 783 }; 784 784 785 - static int __devinit snd_opl3sa2_pnp_cdetect(struct pnp_card_link *pcard, 786 - const struct pnp_card_device_id *id) 785 + static int snd_opl3sa2_pnp_cdetect(struct pnp_card_link *pcard, 786 + const struct pnp_card_device_id *id) 787 787 { 788 788 static int dev; 789 789 struct pnp_dev *pdev; ··· 820 820 return 0; 821 821 } 822 822 823 - static void __devexit snd_opl3sa2_pnp_cremove(struct pnp_card_link * pcard) 823 + static void snd_opl3sa2_pnp_cremove(struct pnp_card_link *pcard) 824 824 { 825 825 snd_card_free(pnp_get_card_drvdata(pcard)); 826 826 pnp_set_card_drvdata(pcard, NULL); ··· 842 842 .name = "snd-opl3sa2-cpnp", 843 843 .id_table = snd_opl3sa2_pnpids, 844 844 .probe = snd_opl3sa2_pnp_cdetect, 845 - .remove = __devexit_p(snd_opl3sa2_pnp_cremove), 845 + .remove = snd_opl3sa2_pnp_cremove, 846 846 #ifdef CONFIG_PM 847 847 .suspend = snd_opl3sa2_pnp_csuspend, 848 848 .resume = snd_opl3sa2_pnp_cresume, ··· 850 850 }; 851 851 #endif /* CONFIG_PNP */ 852 852 853 - static int __devinit snd_opl3sa2_isa_match(struct device *pdev, 854 - unsigned int dev) 853 + static int snd_opl3sa2_isa_match(struct device *pdev, 854 + unsigned int dev) 855 855 { 856 856 if (!enable[dev]) 857 857 return 0; ··· 878 878 return 1; 879 879 } 880 880 881 - static int __devinit snd_opl3sa2_isa_probe(struct device *pdev, 882 - unsigned int dev) 881 + static int snd_opl3sa2_isa_probe(struct device *pdev, 882 + unsigned int dev) 883 883 { 884 884 struct snd_card *card; 885 885 int err; ··· 896 896 return 0; 897 897 } 898 898 899 - static int __devexit snd_opl3sa2_isa_remove(struct device *devptr, 900 - unsigned int dev) 899 + static int snd_opl3sa2_isa_remove(struct device *devptr, 900 + unsigned int dev) 901 901 { 902 902 snd_card_free(dev_get_drvdata(devptr)); 903 903 dev_set_drvdata(devptr, NULL); ··· 922 922 static struct isa_driver snd_opl3sa2_isa_driver = { 923 923 .match = snd_opl3sa2_isa_match, 924 924 .probe = snd_opl3sa2_isa_probe, 925 - .remove = __devexit_p(snd_opl3sa2_isa_remove), 925 + .remove = snd_opl3sa2_isa_remove, 926 926 #ifdef CONFIG_PM 927 927 .suspend = snd_opl3sa2_isa_suspend, 928 928 .resume = snd_opl3sa2_isa_resume,
+34 -34
sound/isa/opti9xx/miro.c
··· 587 587 return change; 588 588 } 589 589 590 - static struct snd_kcontrol_new snd_miro_controls[] __devinitdata = { 590 + static struct snd_kcontrol_new snd_miro_controls[] = { 591 591 MIRO_DOUBLE("Master Playback Volume", 0, ACI_GET_MASTER, ACI_SET_MASTER), 592 592 MIRO_DOUBLE("Mic Playback Volume", 1, ACI_GET_MIC, ACI_SET_MIC), 593 593 MIRO_DOUBLE("Line Playback Volume", 1, ACI_GET_LINE, ACI_SET_LINE), ··· 599 599 600 600 /* Equalizer with seven bands (only PCM20) 601 601 from -12dB up to +12dB on each band */ 602 - static struct snd_kcontrol_new snd_miro_eq_controls[] __devinitdata = { 602 + static struct snd_kcontrol_new snd_miro_eq_controls[] = { 603 603 MIRO_DOUBLE("Tone Control - 28 Hz", 0, ACI_GET_EQ1, ACI_SET_EQ1), 604 604 MIRO_DOUBLE("Tone Control - 160 Hz", 0, ACI_GET_EQ2, ACI_SET_EQ2), 605 605 MIRO_DOUBLE("Tone Control - 400 Hz", 0, ACI_GET_EQ3, ACI_SET_EQ3), ··· 609 609 MIRO_DOUBLE("Tone Control - 16 kHz", 0, ACI_GET_EQ7, ACI_SET_EQ7), 610 610 }; 611 611 612 - static struct snd_kcontrol_new snd_miro_radio_control[] __devinitdata = { 612 + static struct snd_kcontrol_new snd_miro_radio_control[] = { 613 613 MIRO_DOUBLE("Radio Playback Volume", 0, ACI_GET_LINE1, ACI_SET_LINE1), 614 614 }; 615 615 616 - static struct snd_kcontrol_new snd_miro_line_control[] __devinitdata = { 616 + static struct snd_kcontrol_new snd_miro_line_control[] = { 617 617 MIRO_DOUBLE("Line Playback Volume", 2, ACI_GET_LINE1, ACI_SET_LINE1), 618 618 }; 619 619 620 - static struct snd_kcontrol_new snd_miro_preamp_control[] __devinitdata = { 620 + static struct snd_kcontrol_new snd_miro_preamp_control[] = { 621 621 { 622 622 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 623 623 .name = "Mic Boost", ··· 627 627 .put = snd_miro_put_preamp, 628 628 }}; 629 629 630 - static struct snd_kcontrol_new snd_miro_amp_control[] __devinitdata = { 630 + static struct snd_kcontrol_new snd_miro_amp_control[] = { 631 631 { 632 632 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 633 633 .name = "Line Boost", ··· 637 637 .put = snd_miro_put_amp, 638 638 }}; 639 639 640 - static struct snd_kcontrol_new snd_miro_capture_control[] __devinitdata = { 640 + static struct snd_kcontrol_new snd_miro_capture_control[] = { 641 641 { 642 642 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 643 643 .name = "PCM Capture Switch", ··· 647 647 .put = snd_miro_put_capture, 648 648 }}; 649 649 650 - static unsigned char aci_init_values[][2] __devinitdata = { 650 + static unsigned char aci_init_values[][2] = { 651 651 { ACI_SET_MUTE, 0x00 }, 652 652 { ACI_SET_POWERAMP, 0x00 }, 653 653 { ACI_SET_PREAMP, 0x00 }, ··· 670 670 { ACI_SET_MASTER + 1, 0x20 }, 671 671 }; 672 672 673 - static int __devinit snd_set_aci_init_values(struct snd_miro *miro) 673 + static int snd_set_aci_init_values(struct snd_miro *miro) 674 674 { 675 675 int idx, error; 676 676 struct snd_miro_aci *aci = miro->aci; ··· 713 713 return 0; 714 714 } 715 715 716 - static int __devinit snd_miro_mixer(struct snd_card *card, 717 - struct snd_miro *miro) 716 + static int snd_miro_mixer(struct snd_card *card, 717 + struct snd_miro *miro) 718 718 { 719 719 unsigned int idx; 720 720 int err; ··· 771 771 return 0; 772 772 } 773 773 774 - static int __devinit snd_miro_init(struct snd_miro *chip, 775 - unsigned short hardware) 774 + static int snd_miro_init(struct snd_miro *chip, 775 + unsigned short hardware) 776 776 { 777 777 static int opti9xx_mc_size[] = {7, 7, 10, 10, 2, 2, 2}; 778 778 ··· 989 989 snd_iprintf(buffer, " preamp : 0x%x\n", aci->aci_preamp); 990 990 } 991 991 992 - static void __devinit snd_miro_proc_init(struct snd_card *card, 993 - struct snd_miro *miro) 992 + static void snd_miro_proc_init(struct snd_card *card, 993 + struct snd_miro *miro) 994 994 { 995 995 struct snd_info_entry *entry; 996 996 ··· 1002 1002 * Init 1003 1003 */ 1004 1004 1005 - static int __devinit snd_miro_configure(struct snd_miro *chip) 1005 + static int snd_miro_configure(struct snd_miro *chip) 1006 1006 { 1007 1007 unsigned char wss_base_bits; 1008 1008 unsigned char irq_bits; ··· 1162 1162 return 0; 1163 1163 } 1164 1164 1165 - static int __devinit snd_miro_opti_check(struct snd_miro *chip) 1165 + static int snd_miro_opti_check(struct snd_miro *chip) 1166 1166 { 1167 1167 unsigned char value; 1168 1168 ··· 1182 1182 return -ENODEV; 1183 1183 } 1184 1184 1185 - static int __devinit snd_card_miro_detect(struct snd_card *card, 1186 - struct snd_miro *chip) 1185 + static int snd_card_miro_detect(struct snd_card *card, 1186 + struct snd_miro *chip) 1187 1187 { 1188 1188 int i, err; 1189 1189 ··· 1200 1200 return -ENODEV; 1201 1201 } 1202 1202 1203 - static int __devinit snd_card_miro_aci_detect(struct snd_card *card, 1204 - struct snd_miro *miro) 1203 + static int snd_card_miro_aci_detect(struct snd_card *card, 1204 + struct snd_miro *miro) 1205 1205 { 1206 1206 unsigned char regval; 1207 1207 int i; ··· 1265 1265 release_and_free_resource(miro->res_mc_base); 1266 1266 } 1267 1267 1268 - static int __devinit snd_miro_probe(struct snd_card *card) 1268 + static int snd_miro_probe(struct snd_card *card) 1269 1269 { 1270 1270 int error; 1271 1271 struct snd_miro *miro = card->private_data; ··· 1386 1386 return snd_card_register(card); 1387 1387 } 1388 1388 1389 - static int __devinit snd_miro_isa_match(struct device *devptr, unsigned int n) 1389 + static int snd_miro_isa_match(struct device *devptr, unsigned int n) 1390 1390 { 1391 1391 #ifdef CONFIG_PNP 1392 1392 if (snd_miro_pnp_is_probed) ··· 1397 1397 return 1; 1398 1398 } 1399 1399 1400 - static int __devinit snd_miro_isa_probe(struct device *devptr, unsigned int n) 1400 + static int snd_miro_isa_probe(struct device *devptr, unsigned int n) 1401 1401 { 1402 1402 static long possible_ports[] = {0x530, 0xe80, 0xf40, 0x604, -1}; 1403 1403 static long possible_mpu_ports[] = {0x330, 0x300, 0x310, 0x320, -1}; ··· 1491 1491 return 0; 1492 1492 } 1493 1493 1494 - static int __devexit snd_miro_isa_remove(struct device *devptr, 1495 - unsigned int dev) 1494 + static int snd_miro_isa_remove(struct device *devptr, 1495 + unsigned int dev) 1496 1496 { 1497 1497 snd_card_free(dev_get_drvdata(devptr)); 1498 1498 dev_set_drvdata(devptr, NULL); ··· 1504 1504 static struct isa_driver snd_miro_driver = { 1505 1505 .match = snd_miro_isa_match, 1506 1506 .probe = snd_miro_isa_probe, 1507 - .remove = __devexit_p(snd_miro_isa_remove), 1507 + .remove = snd_miro_isa_remove, 1508 1508 /* FIXME: suspend/resume */ 1509 1509 .driver = { 1510 1510 .name = DEV_NAME ··· 1513 1513 1514 1514 #ifdef CONFIG_PNP 1515 1515 1516 - static int __devinit snd_card_miro_pnp(struct snd_miro *chip, 1517 - struct pnp_card_link *card, 1518 - const struct pnp_card_device_id *pid) 1516 + static int snd_card_miro_pnp(struct snd_miro *chip, 1517 + struct pnp_card_link *card, 1518 + const struct pnp_card_device_id *pid) 1519 1519 { 1520 1520 struct pnp_dev *pdev; 1521 1521 int err; ··· 1574 1574 return 0; 1575 1575 } 1576 1576 1577 - static int __devinit snd_miro_pnp_probe(struct pnp_card_link *pcard, 1578 - const struct pnp_card_device_id *pid) 1577 + static int snd_miro_pnp_probe(struct pnp_card_link *pcard, 1578 + const struct pnp_card_device_id *pid) 1579 1579 { 1580 1580 struct snd_card *card; 1581 1581 int err; ··· 1624 1624 return 0; 1625 1625 } 1626 1626 1627 - static void __devexit snd_miro_pnp_remove(struct pnp_card_link * pcard) 1627 + static void snd_miro_pnp_remove(struct pnp_card_link *pcard) 1628 1628 { 1629 1629 snd_card_free(pnp_get_card_drvdata(pcard)); 1630 1630 pnp_set_card_drvdata(pcard, NULL); ··· 1636 1636 .name = "miro", 1637 1637 .id_table = snd_miro_pnpids, 1638 1638 .probe = snd_miro_pnp_probe, 1639 - .remove = __devexit_p(snd_miro_pnp_remove), 1639 + .remove = snd_miro_pnp_remove, 1640 1640 }; 1641 1641 #endif 1642 1642
+21 -21
sound/isa/opti9xx/opti92x-ad1848.c
··· 186 186 "82C930", "82C931", "82C933" 187 187 }; 188 188 189 - static int __devinit snd_opti9xx_init(struct snd_opti9xx *chip, 190 - unsigned short hardware) 189 + static int snd_opti9xx_init(struct snd_opti9xx *chip, 190 + unsigned short hardware) 191 191 { 192 192 static int opti9xx_mc_size[] = {7, 7, 10, 10, 2, 2, 2}; 193 193 ··· 593 593 db_scale_4bit_12db_max), 594 594 }; 595 595 596 - static int __devinit snd_opti93x_mixer(struct snd_wss *chip) 596 + static int snd_opti93x_mixer(struct snd_wss *chip) 597 597 { 598 598 struct snd_card *card; 599 599 unsigned int idx; ··· 666 666 667 667 #endif /* OPTi93X */ 668 668 669 - static int __devinit snd_opti9xx_read_check(struct snd_opti9xx *chip) 669 + static int snd_opti9xx_read_check(struct snd_opti9xx *chip) 670 670 { 671 671 unsigned char value; 672 672 #ifdef OPTi93X ··· 707 707 return -ENODEV; 708 708 } 709 709 710 - static int __devinit snd_card_opti9xx_detect(struct snd_card *card, 711 - struct snd_opti9xx *chip) 710 + static int snd_card_opti9xx_detect(struct snd_card *card, 711 + struct snd_opti9xx *chip) 712 712 { 713 713 int i, err; 714 714 ··· 732 732 } 733 733 734 734 #ifdef CONFIG_PNP 735 - static int __devinit snd_card_opti9xx_pnp(struct snd_opti9xx *chip, 736 - struct pnp_card_link *card, 737 - const struct pnp_card_device_id *pid) 735 + static int snd_card_opti9xx_pnp(struct snd_opti9xx *chip, 736 + struct pnp_card_link *card, 737 + const struct pnp_card_device_id *pid) 738 738 { 739 739 struct pnp_dev *pdev; 740 740 int err; ··· 817 817 } 818 818 } 819 819 820 - static int __devinit snd_opti9xx_probe(struct snd_card *card) 820 + static int snd_opti9xx_probe(struct snd_card *card) 821 821 { 822 822 static long possible_ports[] = {0x530, 0xe80, 0xf40, 0x604, -1}; 823 823 int error; ··· 952 952 return 0; 953 953 } 954 954 955 - static int __devinit snd_opti9xx_isa_match(struct device *devptr, 956 - unsigned int dev) 955 + static int snd_opti9xx_isa_match(struct device *devptr, 956 + unsigned int dev) 957 957 { 958 958 #ifdef CONFIG_PNP 959 959 if (snd_opti9xx_pnp_is_probed) ··· 964 964 return 1; 965 965 } 966 966 967 - static int __devinit snd_opti9xx_isa_probe(struct device *devptr, 968 - unsigned int dev) 967 + static int snd_opti9xx_isa_probe(struct device *devptr, 968 + unsigned int dev) 969 969 { 970 970 struct snd_card *card; 971 971 int error; ··· 1031 1031 return 0; 1032 1032 } 1033 1033 1034 - static int __devexit snd_opti9xx_isa_remove(struct device *devptr, 1035 - unsigned int dev) 1034 + static int snd_opti9xx_isa_remove(struct device *devptr, 1035 + unsigned int dev) 1036 1036 { 1037 1037 snd_card_free(dev_get_drvdata(devptr)); 1038 1038 dev_set_drvdata(devptr, NULL); ··· 1083 1083 static struct isa_driver snd_opti9xx_driver = { 1084 1084 .match = snd_opti9xx_isa_match, 1085 1085 .probe = snd_opti9xx_isa_probe, 1086 - .remove = __devexit_p(snd_opti9xx_isa_remove), 1086 + .remove = snd_opti9xx_isa_remove, 1087 1087 #ifdef CONFIG_PM 1088 1088 .suspend = snd_opti9xx_isa_suspend, 1089 1089 .resume = snd_opti9xx_isa_resume, ··· 1094 1094 }; 1095 1095 1096 1096 #ifdef CONFIG_PNP 1097 - static int __devinit snd_opti9xx_pnp_probe(struct pnp_card_link *pcard, 1098 - const struct pnp_card_device_id *pid) 1097 + static int snd_opti9xx_pnp_probe(struct pnp_card_link *pcard, 1098 + const struct pnp_card_device_id *pid) 1099 1099 { 1100 1100 struct snd_card *card; 1101 1101 int error, hw; ··· 1146 1146 return 0; 1147 1147 } 1148 1148 1149 - static void __devexit snd_opti9xx_pnp_remove(struct pnp_card_link * pcard) 1149 + static void snd_opti9xx_pnp_remove(struct pnp_card_link *pcard) 1150 1150 { 1151 1151 snd_card_free(pnp_get_card_drvdata(pcard)); 1152 1152 pnp_set_card_drvdata(pcard, NULL); ··· 1171 1171 .name = "opti9xx", 1172 1172 .id_table = snd_opti9xx_pnpids, 1173 1173 .probe = snd_opti9xx_pnp_probe, 1174 - .remove = __devexit_p(snd_opti9xx_pnp_remove), 1174 + .remove = snd_opti9xx_pnp_remove, 1175 1175 #ifdef CONFIG_PM 1176 1176 .suspend = snd_opti9xx_pnp_suspend, 1177 1177 .resume = snd_opti9xx_pnp_resume,
+11 -11
sound/isa/sb/emu8000.c
··· 131 131 132 132 /* 133 133 */ 134 - static void __devinit 134 + static void 135 135 snd_emu8000_read_wait(struct snd_emu8000 *emu) 136 136 { 137 137 while ((EMU8000_SMALR_READ(emu) & 0x80000000) != 0) { ··· 143 143 144 144 /* 145 145 */ 146 - static void __devinit 146 + static void 147 147 snd_emu8000_write_wait(struct snd_emu8000 *emu) 148 148 { 149 149 while ((EMU8000_SMALW_READ(emu) & 0x80000000) != 0) { ··· 156 156 /* 157 157 * detect a card at the given port 158 158 */ 159 - static int __devinit 159 + static int 160 160 snd_emu8000_detect(struct snd_emu8000 *emu) 161 161 { 162 162 /* Initialise */ ··· 182 182 /* 183 183 * intiailize audio channels 184 184 */ 185 - static void __devinit 185 + static void 186 186 init_audio(struct snd_emu8000 *emu) 187 187 { 188 188 int ch; ··· 223 223 /* 224 224 * initialize DMA address 225 225 */ 226 - static void __devinit 226 + static void 227 227 init_dma(struct snd_emu8000 *emu) 228 228 { 229 229 EMU8000_SMALR_WRITE(emu, 0); ··· 327 327 * Taken from the oss driver, not obvious from the doc how this 328 328 * is meant to work 329 329 */ 330 - static void __devinit 330 + static void 331 331 send_array(struct snd_emu8000 *emu, unsigned short *data, int size) 332 332 { 333 333 int i; ··· 349 349 * Send initialization arrays to start up, this just follows the 350 350 * initialisation sequence in the adip. 351 351 */ 352 - static void __devinit 352 + static void 353 353 init_arrays(struct snd_emu8000 *emu) 354 354 { 355 355 send_array(emu, init1, ARRAY_SIZE(init1)/4); ··· 375 375 * seems that the only way to do this is to use the one channel and keep 376 376 * reallocating between read and write. 377 377 */ 378 - static void __devinit 378 + static void 379 379 size_dram(struct snd_emu8000 *emu) 380 380 { 381 381 int i, size, detected_size; ··· 512 512 /* 513 513 * The main initialization routine. 514 514 */ 515 - static void __devinit 515 + static void 516 516 snd_emu8000_init_hw(struct snd_emu8000 *emu) 517 517 { 518 518 int i; ··· 1031 1031 /* 1032 1032 * create and attach mixer elements for WaveTable treble/bass controls 1033 1033 */ 1034 - static int __devinit 1034 + static int 1035 1035 snd_emu8000_create_mixer(struct snd_card *card, struct snd_emu8000 *emu) 1036 1036 { 1037 1037 int i, err = 0; ··· 1082 1082 /* 1083 1083 * initialize and register emu8000 synth device. 1084 1084 */ 1085 - int __devinit 1085 + int 1086 1086 snd_emu8000_new(struct snd_card *card, int index, long port, int seq_ports, 1087 1087 struct snd_seq_device **awe_ret) 1088 1088 {
+9 -9
sound/isa/sb/jazz16.c
··· 78 78 return snd_sb8dsp_interrupt(chip); 79 79 } 80 80 81 - static int __devinit jazz16_configure_ports(unsigned long port, 82 - unsigned long mpu_port, int idx) 81 + static int jazz16_configure_ports(unsigned long port, 82 + unsigned long mpu_port, int idx) 83 83 { 84 84 unsigned char val; 85 85 ··· 99 99 return 0; 100 100 } 101 101 102 - static int __devinit jazz16_detect_board(unsigned long port, 103 - unsigned long mpu_port) 102 + static int jazz16_detect_board(unsigned long port, 103 + unsigned long mpu_port) 104 104 { 105 105 int err; 106 106 int val; ··· 156 156 return err; 157 157 } 158 158 159 - static int __devinit jazz16_configure_board(struct snd_sb *chip, int mpu_irq) 159 + static int jazz16_configure_board(struct snd_sb *chip, int mpu_irq) 160 160 { 161 161 static unsigned char jazz_irq_bits[] = { 0, 0, 2, 3, 0, 1, 0, 4, 162 162 0, 2, 5, 0, 0, 0, 0, 6 }; ··· 183 183 return 0; 184 184 } 185 185 186 - static int __devinit snd_jazz16_match(struct device *devptr, unsigned int dev) 186 + static int snd_jazz16_match(struct device *devptr, unsigned int dev) 187 187 { 188 188 if (!enable[dev]) 189 189 return 0; ··· 218 218 return 1; 219 219 } 220 220 221 - static int __devinit snd_jazz16_probe(struct device *devptr, unsigned int dev) 221 + static int snd_jazz16_probe(struct device *devptr, unsigned int dev) 222 222 { 223 223 struct snd_card *card; 224 224 struct snd_card_jazz16 *jazz16; ··· 341 341 return err; 342 342 } 343 343 344 - static int __devexit snd_jazz16_remove(struct device *devptr, unsigned int dev) 344 + static int snd_jazz16_remove(struct device *devptr, unsigned int dev) 345 345 { 346 346 struct snd_card *card = dev_get_drvdata(devptr); 347 347 ··· 380 380 static struct isa_driver snd_jazz16_driver = { 381 381 .match = snd_jazz16_match, 382 382 .probe = snd_jazz16_probe, 383 - .remove = __devexit_p(snd_jazz16_remove), 383 + .remove = snd_jazz16_remove, 384 384 #ifdef CONFIG_PM 385 385 .suspend = snd_jazz16_suspend, 386 386 .resume = snd_jazz16_resume,
+13 -13
sound/isa/sb/sb16.c
··· 250 250 251 251 #ifdef CONFIG_PNP 252 252 253 - static int __devinit snd_card_sb16_pnp(int dev, struct snd_card_sb16 *acard, 254 - struct pnp_card_link *card, 255 - const struct pnp_card_device_id *id) 253 + static int snd_card_sb16_pnp(int dev, struct snd_card_sb16 *acard, 254 + struct pnp_card_link *card, 255 + const struct pnp_card_device_id *id) 256 256 { 257 257 struct pnp_dev *pdev; 258 258 int err; ··· 337 337 return 0; 338 338 } 339 339 340 - static int __devinit snd_sb16_probe(struct snd_card *card, int dev) 340 + static int snd_sb16_probe(struct snd_card *card, int dev) 341 341 { 342 342 int xirq, xdma8, xdma16; 343 343 struct snd_sb *chip; ··· 487 487 } 488 488 #endif 489 489 490 - static int __devinit snd_sb16_isa_probe1(int dev, struct device *pdev) 490 + static int snd_sb16_isa_probe1(int dev, struct device *pdev) 491 491 { 492 492 struct snd_card_sb16 *acard; 493 493 struct snd_card *card; ··· 517 517 } 518 518 519 519 520 - static int __devinit snd_sb16_isa_match(struct device *pdev, unsigned int dev) 520 + static int snd_sb16_isa_match(struct device *pdev, unsigned int dev) 521 521 { 522 522 return enable[dev] && !is_isapnp_selected(dev); 523 523 } 524 524 525 - static int __devinit snd_sb16_isa_probe(struct device *pdev, unsigned int dev) 525 + static int snd_sb16_isa_probe(struct device *pdev, unsigned int dev) 526 526 { 527 527 int err; 528 528 static int possible_irqs[] = {5, 9, 10, 7, -1}; ··· 563 563 } 564 564 } 565 565 566 - static int __devexit snd_sb16_isa_remove(struct device *pdev, unsigned int dev) 566 + static int snd_sb16_isa_remove(struct device *pdev, unsigned int dev) 567 567 { 568 568 snd_card_free(dev_get_drvdata(pdev)); 569 569 dev_set_drvdata(pdev, NULL); ··· 592 592 static struct isa_driver snd_sb16_isa_driver = { 593 593 .match = snd_sb16_isa_match, 594 594 .probe = snd_sb16_isa_probe, 595 - .remove = __devexit_p(snd_sb16_isa_remove), 595 + .remove = snd_sb16_isa_remove, 596 596 #ifdef CONFIG_PM 597 597 .suspend = snd_sb16_isa_suspend, 598 598 .resume = snd_sb16_isa_resume, ··· 604 604 605 605 606 606 #ifdef CONFIG_PNP 607 - static int __devinit snd_sb16_pnp_detect(struct pnp_card_link *pcard, 608 - const struct pnp_card_device_id *pid) 607 + static int snd_sb16_pnp_detect(struct pnp_card_link *pcard, 608 + const struct pnp_card_device_id *pid) 609 609 { 610 610 static int dev; 611 611 struct snd_card *card; ··· 631 631 return -ENODEV; 632 632 } 633 633 634 - static void __devexit snd_sb16_pnp_remove(struct pnp_card_link * pcard) 634 + static void snd_sb16_pnp_remove(struct pnp_card_link *pcard) 635 635 { 636 636 snd_card_free(pnp_get_card_drvdata(pcard)); 637 637 pnp_set_card_drvdata(pcard, NULL); ··· 657 657 #endif 658 658 .id_table = snd_sb16_pnpids, 659 659 .probe = snd_sb16_pnp_detect, 660 - .remove = __devexit_p(snd_sb16_pnp_remove), 660 + .remove = snd_sb16_pnp_remove, 661 661 #ifdef CONFIG_PM 662 662 .suspend = snd_sb16_pnp_suspend, 663 663 .resume = snd_sb16_pnp_resume,
+4 -4
sound/isa/sb/sb8.c
··· 79 79 release_and_free_resource(acard->fm_res); 80 80 } 81 81 82 - static int __devinit snd_sb8_match(struct device *pdev, unsigned int dev) 82 + static int snd_sb8_match(struct device *pdev, unsigned int dev) 83 83 { 84 84 if (!enable[dev]) 85 85 return 0; ··· 94 94 return 1; 95 95 } 96 96 97 - static int __devinit snd_sb8_probe(struct device *pdev, unsigned int dev) 97 + static int snd_sb8_probe(struct device *pdev, unsigned int dev) 98 98 { 99 99 struct snd_sb *chip; 100 100 struct snd_card *card; ··· 205 205 return err; 206 206 } 207 207 208 - static int __devexit snd_sb8_remove(struct device *pdev, unsigned int dev) 208 + static int snd_sb8_remove(struct device *pdev, unsigned int dev) 209 209 { 210 210 snd_card_free(dev_get_drvdata(pdev)); 211 211 dev_set_drvdata(pdev, NULL); ··· 244 244 static struct isa_driver snd_sb8_driver = { 245 245 .match = snd_sb8_match, 246 246 .probe = snd_sb8_probe, 247 - .remove = __devexit_p(snd_sb8_remove), 247 + .remove = snd_sb8_remove, 248 248 #ifdef CONFIG_PM 249 249 .suspend = snd_sb8_suspend, 250 250 .resume = snd_sb8_resume,
+19 -19
sound/isa/sc6000.c
··· 121 121 /* 122 122 * sc6000_irq_to_softcfg - Decode irq number into cfg code. 123 123 */ 124 - static __devinit unsigned char sc6000_irq_to_softcfg(int irq) 124 + static unsigned char sc6000_irq_to_softcfg(int irq) 125 125 { 126 126 unsigned char val = 0; 127 127 ··· 150 150 /* 151 151 * sc6000_dma_to_softcfg - Decode dma number into cfg code. 152 152 */ 153 - static __devinit unsigned char sc6000_dma_to_softcfg(int dma) 153 + static unsigned char sc6000_dma_to_softcfg(int dma) 154 154 { 155 155 unsigned char val = 0; 156 156 ··· 173 173 /* 174 174 * sc6000_mpu_irq_to_softcfg - Decode MPU-401 irq number into cfg code. 175 175 */ 176 - static __devinit unsigned char sc6000_mpu_irq_to_softcfg(int mpu_irq) 176 + static unsigned char sc6000_mpu_irq_to_softcfg(int mpu_irq) 177 177 { 178 178 unsigned char val = 0; 179 179 ··· 242 242 return -EIO; 243 243 } 244 244 245 - static int __devinit sc6000_dsp_get_answer(char __iomem *vport, int command, 246 - char *data, int data_len) 245 + static int sc6000_dsp_get_answer(char __iomem *vport, int command, 246 + char *data, int data_len) 247 247 { 248 248 int len = 0; 249 249 ··· 269 269 return len ? len : -EIO; 270 270 } 271 271 272 - static int __devinit sc6000_dsp_reset(char __iomem *vport) 272 + static int sc6000_dsp_reset(char __iomem *vport) 273 273 { 274 274 iowrite8(1, vport + DSP_RESET); 275 275 udelay(10); ··· 281 281 } 282 282 283 283 /* detection and initialization */ 284 - static int __devinit sc6000_hw_cfg_write(char __iomem *vport, const int *cfg) 284 + static int sc6000_hw_cfg_write(char __iomem *vport, const int *cfg) 285 285 { 286 286 if (sc6000_write(vport, COMMAND_6C) < 0) { 287 287 snd_printk(KERN_WARNING "CMD 0x%x: failed!\n", COMMAND_6C); ··· 345 345 return 0; 346 346 } 347 347 348 - static int __devinit sc6000_init_mss(char __iomem *vport, int config, 349 - char __iomem *vmss_port, int mss_config) 348 + static int sc6000_init_mss(char __iomem *vport, int config, 349 + char __iomem *vmss_port, int mss_config) 350 350 { 351 351 if (sc6000_write(vport, DSP_INIT_MSS)) { 352 352 snd_printk(KERN_ERR "sc6000_init_mss [0x%x]: failed!\n", ··· 364 364 return 0; 365 365 } 366 366 367 - static void __devinit sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, 368 - long xport, long xmpu, 369 - long xmss_port, int joystick) 367 + static void sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, 368 + long xport, long xmpu, 369 + long xmss_port, int joystick) 370 370 { 371 371 cfg[0] = 0; 372 372 cfg[1] = 0; ··· 386 386 snd_printd("hw cfg %x, %x\n", cfg[0], cfg[1]); 387 387 } 388 388 389 - static int __devinit sc6000_init_board(char __iomem *vport, 390 - char __iomem *vmss_port, int dev) 389 + static int sc6000_init_board(char __iomem *vport, 390 + char __iomem *vmss_port, int dev) 391 391 { 392 392 char answer[15]; 393 393 char version[2]; ··· 467 467 return 0; 468 468 } 469 469 470 - static int __devinit snd_sc6000_mixer(struct snd_wss *chip) 470 + static int snd_sc6000_mixer(struct snd_wss *chip) 471 471 { 472 472 struct snd_card *card = chip->card; 473 473 struct snd_ctl_elem_id id1, id2; ··· 502 502 return 0; 503 503 } 504 504 505 - static int __devinit snd_sc6000_match(struct device *devptr, unsigned int dev) 505 + static int snd_sc6000_match(struct device *devptr, unsigned int dev) 506 506 { 507 507 if (!enable[dev]) 508 508 return 0; ··· 545 545 return 1; 546 546 } 547 547 548 - static int __devinit snd_sc6000_probe(struct device *devptr, unsigned int dev) 548 + static int snd_sc6000_probe(struct device *devptr, unsigned int dev) 549 549 { 550 550 static int possible_irqs[] = { 5, 7, 9, 10, 11, -1 }; 551 551 static int possible_dmas[] = { 1, 3, 0, -1 }; ··· 687 687 return err; 688 688 } 689 689 690 - static int __devexit snd_sc6000_remove(struct device *devptr, unsigned int dev) 690 + static int snd_sc6000_remove(struct device *devptr, unsigned int dev) 691 691 { 692 692 struct snd_card *card = dev_get_drvdata(devptr); 693 693 char __iomem **vport = card->private_data; ··· 706 706 static struct isa_driver snd_sc6000_driver = { 707 707 .match = snd_sc6000_match, 708 708 .probe = snd_sc6000_probe, 709 - .remove = __devexit_p(snd_sc6000_remove), 709 + .remove = snd_sc6000_remove, 710 710 /* FIXME: suspend/resume */ 711 711 .driver = { 712 712 .name = DRV_NAME,
+16 -16
sound/isa/sscape.c
··· 683 683 * These IRQs are encoded as bit patterns so that they can be 684 684 * written to the control registers. 685 685 */ 686 - static unsigned __devinit get_irq_config(int sscape_type, int irq) 686 + static unsigned get_irq_config(int sscape_type, int irq) 687 687 { 688 688 static const int valid_irq[] = { 9, 5, 7, 10 }; 689 689 static const int old_irq[] = { 9, 7, 5, 15 }; ··· 706 706 * Perform certain arcane port-checks to see whether there 707 707 * is a SoundScape board lurking behind the given ports. 708 708 */ 709 - static int __devinit detect_sscape(struct soundscape *s, long wss_io) 709 + static int detect_sscape(struct soundscape *s, long wss_io) 710 710 { 711 711 unsigned long flags; 712 712 unsigned d; ··· 817 817 /* 818 818 * Initialse an MPU-401 subdevice for MIDI support on the SoundScape. 819 819 */ 820 - static int __devinit create_mpu401(struct snd_card *card, int devnum, 821 - unsigned long port, int irq) 820 + static int create_mpu401(struct snd_card *card, int devnum, 821 + unsigned long port, int irq) 822 822 { 823 823 struct soundscape *sscape = get_card_soundscape(card); 824 824 struct snd_rawmidi *rawmidi; ··· 845 845 * try to support at least some of the extra bits by overriding 846 846 * some of the CS4231 callback. 847 847 */ 848 - static int __devinit create_ad1845(struct snd_card *card, unsigned port, 849 - int irq, int dma1, int dma2) 848 + static int create_ad1845(struct snd_card *card, unsigned port, 849 + int irq, int dma1, int dma2) 850 850 { 851 851 register struct soundscape *sscape = get_card_soundscape(card); 852 852 struct snd_wss *chip; ··· 937 937 * Create an ALSA soundcard entry for the SoundScape, using 938 938 * the given list of port, IRQ and DMA resources. 939 939 */ 940 - static int __devinit create_sscape(int dev, struct snd_card *card) 940 + static int create_sscape(int dev, struct snd_card *card) 941 941 { 942 942 struct soundscape *sscape = get_card_soundscape(card); 943 943 unsigned dma_cfg; ··· 1143 1143 } 1144 1144 1145 1145 1146 - static int __devinit snd_sscape_match(struct device *pdev, unsigned int i) 1146 + static int snd_sscape_match(struct device *pdev, unsigned int i) 1147 1147 { 1148 1148 /* 1149 1149 * Make sure we were given ALL of the other parameters. ··· 1163 1163 return 1; 1164 1164 } 1165 1165 1166 - static int __devinit snd_sscape_probe(struct device *pdev, unsigned int dev) 1166 + static int snd_sscape_probe(struct device *pdev, unsigned int dev) 1167 1167 { 1168 1168 struct snd_card *card; 1169 1169 struct soundscape *sscape; ··· 1197 1197 return ret; 1198 1198 } 1199 1199 1200 - static int __devexit snd_sscape_remove(struct device *devptr, unsigned int dev) 1200 + static int snd_sscape_remove(struct device *devptr, unsigned int dev) 1201 1201 { 1202 1202 snd_card_free(dev_get_drvdata(devptr)); 1203 1203 dev_set_drvdata(devptr, NULL); ··· 1209 1209 static struct isa_driver snd_sscape_driver = { 1210 1210 .match = snd_sscape_match, 1211 1211 .probe = snd_sscape_probe, 1212 - .remove = __devexit_p(snd_sscape_remove), 1212 + .remove = snd_sscape_remove, 1213 1213 /* FIXME: suspend/resume */ 1214 1214 .driver = { 1215 1215 .name = DEV_NAME ··· 1217 1217 }; 1218 1218 1219 1219 #ifdef CONFIG_PNP 1220 - static inline int __devinit get_next_autoindex(int i) 1220 + static inline int get_next_autoindex(int i) 1221 1221 { 1222 1222 while (i < SNDRV_CARDS && port[i] != SNDRV_AUTO_PORT) 1223 1223 ++i; ··· 1225 1225 } 1226 1226 1227 1227 1228 - static int __devinit sscape_pnp_detect(struct pnp_card_link *pcard, 1229 - const struct pnp_card_device_id *pid) 1228 + static int sscape_pnp_detect(struct pnp_card_link *pcard, 1229 + const struct pnp_card_device_id *pid) 1230 1230 { 1231 1231 static int idx = 0; 1232 1232 struct pnp_dev *dev; ··· 1310 1310 return ret; 1311 1311 } 1312 1312 1313 - static void __devexit sscape_pnp_remove(struct pnp_card_link * pcard) 1313 + static void sscape_pnp_remove(struct pnp_card_link *pcard) 1314 1314 { 1315 1315 snd_card_free(pnp_get_card_drvdata(pcard)); 1316 1316 pnp_set_card_drvdata(pcard, NULL); ··· 1321 1321 .name = "sscape", 1322 1322 .id_table = sscape_pnpids, 1323 1323 .probe = sscape_pnp_detect, 1324 - .remove = __devexit_p(sscape_pnp_remove), 1324 + .remove = sscape_pnp_remove, 1325 1325 }; 1326 1326 1327 1327 #endif /* CONFIG_PNP */
+25 -28
sound/isa/wavefront/wavefront.c
··· 98 98 99 99 MODULE_DEVICE_TABLE(pnp_card, snd_wavefront_pnpids); 100 100 101 - static int __devinit 101 + static int 102 102 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, 103 103 const struct pnp_card_device_id *id) 104 104 { ··· 231 231 return IRQ_HANDLED; 232 232 } 233 233 234 - static struct snd_hwdep * __devinit 235 - snd_wavefront_new_synth (struct snd_card *card, 236 - int hw_dev, 237 - snd_wavefront_card_t *acard) 234 + static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, 235 + int hw_dev, 236 + snd_wavefront_card_t *acard) 238 237 { 239 238 struct snd_hwdep *wavefront_synth; 240 239 ··· 256 257 return wavefront_synth; 257 258 } 258 259 259 - static struct snd_hwdep * __devinit 260 - snd_wavefront_new_fx (struct snd_card *card, 261 - int hw_dev, 262 - snd_wavefront_card_t *acard, 263 - unsigned long port) 260 + static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, 261 + int hw_dev, 262 + snd_wavefront_card_t *acard, 263 + unsigned long port) 264 264 265 265 { 266 266 struct snd_hwdep *fx_processor; ··· 282 284 static snd_wavefront_mpu_id internal_id = internal_mpu; 283 285 static snd_wavefront_mpu_id external_id = external_mpu; 284 286 285 - static struct snd_rawmidi *__devinit 286 - snd_wavefront_new_midi (struct snd_card *card, 287 - int midi_dev, 288 - snd_wavefront_card_t *acard, 289 - unsigned long port, 290 - snd_wavefront_mpu_id mpu) 287 + static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, 288 + int midi_dev, 289 + snd_wavefront_card_t *acard, 290 + unsigned long port, 291 + snd_wavefront_mpu_id mpu) 291 292 292 293 { 293 294 struct snd_rawmidi *rmidi; ··· 358 361 return 0; 359 362 } 360 363 361 - static int __devinit 364 + static int 362 365 snd_wavefront_probe (struct snd_card *card, int dev) 363 366 { 364 367 snd_wavefront_card_t *acard = card->private_data; ··· 538 541 return snd_card_register(card); 539 542 } 540 543 541 - static int __devinit snd_wavefront_isa_match(struct device *pdev, 542 - unsigned int dev) 544 + static int snd_wavefront_isa_match(struct device *pdev, 545 + unsigned int dev) 543 546 { 544 547 if (!enable[dev]) 545 548 return 0; ··· 558 561 return 1; 559 562 } 560 563 561 - static int __devinit snd_wavefront_isa_probe(struct device *pdev, 562 - unsigned int dev) 564 + static int snd_wavefront_isa_probe(struct device *pdev, 565 + unsigned int dev) 563 566 { 564 567 struct snd_card *card; 565 568 int err; ··· 577 580 return 0; 578 581 } 579 582 580 - static int __devexit snd_wavefront_isa_remove(struct device *devptr, 581 - unsigned int dev) 583 + static int snd_wavefront_isa_remove(struct device *devptr, 584 + unsigned int dev) 582 585 { 583 586 snd_card_free(dev_get_drvdata(devptr)); 584 587 dev_set_drvdata(devptr, NULL); ··· 590 593 static struct isa_driver snd_wavefront_driver = { 591 594 .match = snd_wavefront_isa_match, 592 595 .probe = snd_wavefront_isa_probe, 593 - .remove = __devexit_p(snd_wavefront_isa_remove), 596 + .remove = snd_wavefront_isa_remove, 594 597 /* FIXME: suspend, resume */ 595 598 .driver = { 596 599 .name = DEV_NAME ··· 599 602 600 603 601 604 #ifdef CONFIG_PNP 602 - static int __devinit snd_wavefront_pnp_detect(struct pnp_card_link *pcard, 603 - const struct pnp_card_device_id *pid) 605 + static int snd_wavefront_pnp_detect(struct pnp_card_link *pcard, 606 + const struct pnp_card_device_id *pid) 604 607 { 605 608 static int dev; 606 609 struct snd_card *card; ··· 634 637 return 0; 635 638 } 636 639 637 - static void __devexit snd_wavefront_pnp_remove(struct pnp_card_link * pcard) 640 + static void snd_wavefront_pnp_remove(struct pnp_card_link *pcard) 638 641 { 639 642 snd_card_free(pnp_get_card_drvdata(pcard)); 640 643 pnp_set_card_drvdata(pcard, NULL); ··· 645 648 .name = "wavefront", 646 649 .id_table = snd_wavefront_pnpids, 647 650 .probe = snd_wavefront_pnp_detect, 648 - .remove = __devexit_p(snd_wavefront_pnp_remove), 651 + .remove = snd_wavefront_pnp_remove, 649 652 /* FIXME: suspend,resume */ 650 653 }; 651 654
+1 -1
sound/isa/wavefront/wavefront_fx.c
··· 240 240 that outputs it. 241 241 */ 242 242 243 - int __devinit 243 + int 244 244 snd_wavefront_fx_start (snd_wavefront_t *dev) 245 245 { 246 246 unsigned int i;
+1 -1
sound/isa/wavefront/wavefront_midi.c
··· 481 481 spin_unlock_irqrestore (&card->wavefront.midi.virtual, flags); 482 482 } 483 483 484 - int __devinit 484 + int 485 485 snd_wavefront_midi_start (snd_wavefront_card_t *card) 486 486 487 487 {
+7 -7
sound/isa/wavefront/wavefront_synth.c
··· 1739 1739 7 Unused 1740 1740 */ 1741 1741 1742 - static int __devinit 1742 + static int 1743 1743 snd_wavefront_interrupt_bits (int irq) 1744 1744 1745 1745 { ··· 1767 1767 return bits; 1768 1768 } 1769 1769 1770 - static void __devinit 1770 + static void 1771 1771 wavefront_should_cause_interrupt (snd_wavefront_t *dev, 1772 1772 int val, int port, unsigned long timeout) 1773 1773 ··· 1786 1786 } 1787 1787 } 1788 1788 1789 - static int __devinit 1789 + static int 1790 1790 wavefront_reset_to_cleanliness (snd_wavefront_t *dev) 1791 1791 1792 1792 { ··· 1937 1937 return (1); 1938 1938 } 1939 1939 1940 - static int __devinit 1940 + static int 1941 1941 wavefront_download_firmware (snd_wavefront_t *dev, char *path) 1942 1942 1943 1943 { ··· 2010 2010 } 2011 2011 2012 2012 2013 - static int __devinit 2013 + static int 2014 2014 wavefront_do_reset (snd_wavefront_t *dev) 2015 2015 2016 2016 { ··· 2099 2099 return 1; 2100 2100 } 2101 2101 2102 - int __devinit 2102 + int 2103 2103 snd_wavefront_start (snd_wavefront_t *dev) 2104 2104 2105 2105 { ··· 2141 2141 return (0); 2142 2142 } 2143 2143 2144 - int __devinit 2144 + int 2145 2145 snd_wavefront_detect (snd_wavefront_card_t *card) 2146 2146 2147 2147 {