diff options
Diffstat (limited to 'sound/isa/sc6000.c')
-rw-r--r-- | sound/isa/sc6000.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sound/isa/sc6000.c b/sound/isa/sc6000.c index d97d0f381817..5376ebff845e 100644 --- a/sound/isa/sc6000.c +++ b/sound/isa/sc6000.c | |||
@@ -121,7 +121,7 @@ MODULE_PARM_DESC(joystick, "Enable gameport."); | |||
121 | /* | 121 | /* |
122 | * sc6000_irq_to_softcfg - Decode irq number into cfg code. | 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 | unsigned char val = 0; | 126 | unsigned char val = 0; |
127 | 127 | ||
@@ -150,7 +150,7 @@ static __devinit unsigned char sc6000_irq_to_softcfg(int irq) | |||
150 | /* | 150 | /* |
151 | * sc6000_dma_to_softcfg - Decode dma number into cfg code. | 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 | unsigned char val = 0; | 155 | unsigned char val = 0; |
156 | 156 | ||
@@ -173,7 +173,7 @@ static __devinit unsigned char sc6000_dma_to_softcfg(int dma) | |||
173 | /* | 173 | /* |
174 | * sc6000_mpu_irq_to_softcfg - Decode MPU-401 irq number into cfg code. | 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 | unsigned char val = 0; | 178 | unsigned char val = 0; |
179 | 179 | ||
@@ -242,8 +242,8 @@ static int sc6000_write(char __iomem *vport, int cmd) | |||
242 | return -EIO; | 242 | return -EIO; |
243 | } | 243 | } |
244 | 244 | ||
245 | static int __devinit sc6000_dsp_get_answer(char __iomem *vport, int command, | 245 | static int sc6000_dsp_get_answer(char __iomem *vport, int command, |
246 | char *data, int data_len) | 246 | char *data, int data_len) |
247 | { | 247 | { |
248 | int len = 0; | 248 | int len = 0; |
249 | 249 | ||
@@ -269,7 +269,7 @@ static int __devinit sc6000_dsp_get_answer(char __iomem *vport, int command, | |||
269 | return len ? len : -EIO; | 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 | iowrite8(1, vport + DSP_RESET); | 274 | iowrite8(1, vport + DSP_RESET); |
275 | udelay(10); | 275 | udelay(10); |
@@ -281,7 +281,7 @@ static int __devinit sc6000_dsp_reset(char __iomem *vport) | |||
281 | } | 281 | } |
282 | 282 | ||
283 | /* detection and initialization */ | 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 | if (sc6000_write(vport, COMMAND_6C) < 0) { | 286 | if (sc6000_write(vport, COMMAND_6C) < 0) { |
287 | snd_printk(KERN_WARNING "CMD 0x%x: failed!\n", COMMAND_6C); | 287 | snd_printk(KERN_WARNING "CMD 0x%x: failed!\n", COMMAND_6C); |
@@ -345,8 +345,8 @@ static int sc6000_setup_board(char __iomem *vport, int config) | |||
345 | return 0; | 345 | return 0; |
346 | } | 346 | } |
347 | 347 | ||
348 | static int __devinit sc6000_init_mss(char __iomem *vport, int config, | 348 | static int sc6000_init_mss(char __iomem *vport, int config, |
349 | char __iomem *vmss_port, int mss_config) | 349 | char __iomem *vmss_port, int mss_config) |
350 | { | 350 | { |
351 | if (sc6000_write(vport, DSP_INIT_MSS)) { | 351 | if (sc6000_write(vport, DSP_INIT_MSS)) { |
352 | snd_printk(KERN_ERR "sc6000_init_mss [0x%x]: failed!\n", | 352 | snd_printk(KERN_ERR "sc6000_init_mss [0x%x]: failed!\n", |
@@ -364,9 +364,9 @@ static int __devinit sc6000_init_mss(char __iomem *vport, int config, | |||
364 | return 0; | 364 | return 0; |
365 | } | 365 | } |
366 | 366 | ||
367 | static void __devinit sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, | 367 | static void sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, |
368 | long xport, long xmpu, | 368 | long xport, long xmpu, |
369 | long xmss_port, int joystick) | 369 | long xmss_port, int joystick) |
370 | { | 370 | { |
371 | cfg[0] = 0; | 371 | cfg[0] = 0; |
372 | cfg[1] = 0; | 372 | cfg[1] = 0; |
@@ -386,8 +386,8 @@ static void __devinit sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, | |||
386 | snd_printd("hw cfg %x, %x\n", cfg[0], cfg[1]); | 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, | 389 | static int sc6000_init_board(char __iomem *vport, |
390 | char __iomem *vmss_port, int dev) | 390 | char __iomem *vmss_port, int dev) |
391 | { | 391 | { |
392 | char answer[15]; | 392 | char answer[15]; |
393 | char version[2]; | 393 | char version[2]; |
@@ -467,7 +467,7 @@ static int __devinit sc6000_init_board(char __iomem *vport, | |||
467 | return 0; | 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 | struct snd_card *card = chip->card; | 472 | struct snd_card *card = chip->card; |
473 | struct snd_ctl_elem_id id1, id2; | 473 | struct snd_ctl_elem_id id1, id2; |
@@ -502,7 +502,7 @@ static int __devinit snd_sc6000_mixer(struct snd_wss *chip) | |||
502 | return 0; | 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 | if (!enable[dev]) | 507 | if (!enable[dev]) |
508 | return 0; | 508 | return 0; |
@@ -545,7 +545,7 @@ static int __devinit snd_sc6000_match(struct device *devptr, unsigned int dev) | |||
545 | return 1; | 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 | static int possible_irqs[] = { 5, 7, 9, 10, 11, -1 }; | 550 | static int possible_irqs[] = { 5, 7, 9, 10, 11, -1 }; |
551 | static int possible_dmas[] = { 1, 3, 0, -1 }; | 551 | static int possible_dmas[] = { 1, 3, 0, -1 }; |
@@ -687,7 +687,7 @@ err_exit: | |||
687 | return err; | 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 | struct snd_card *card = dev_get_drvdata(devptr); | 692 | struct snd_card *card = dev_get_drvdata(devptr); |
693 | char __iomem **vport = card->private_data; | 693 | char __iomem **vport = card->private_data; |
@@ -706,7 +706,7 @@ static int __devexit snd_sc6000_remove(struct device *devptr, unsigned int dev) | |||
706 | static struct isa_driver snd_sc6000_driver = { | 706 | static struct isa_driver snd_sc6000_driver = { |
707 | .match = snd_sc6000_match, | 707 | .match = snd_sc6000_match, |
708 | .probe = snd_sc6000_probe, | 708 | .probe = snd_sc6000_probe, |
709 | .remove = __devexit_p(snd_sc6000_remove), | 709 | .remove = snd_sc6000_remove, |
710 | /* FIXME: suspend/resume */ | 710 | /* FIXME: suspend/resume */ |
711 | .driver = { | 711 | .driver = { |
712 | .name = DRV_NAME, | 712 | .name = DRV_NAME, |