diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/isa/wavefront/wavefront_synth.c | 7 | ||||
-rw-r--r-- | sound/oss/i810_audio.c | 18 |
2 files changed, 8 insertions, 17 deletions
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c index 679d0ae97e4f..ed81eec6e732 100644 --- a/sound/isa/wavefront/wavefront_synth.c +++ b/sound/isa/wavefront/wavefront_synth.c | |||
@@ -115,18 +115,11 @@ MODULE_PARM_DESC(osrun_time, "how many seconds to wait for the ICS2115 OS"); | |||
115 | 115 | ||
116 | #ifdef WF_DEBUG | 116 | #ifdef WF_DEBUG |
117 | 117 | ||
118 | #if defined(NEW_MACRO_VARARGS) || __GNUC__ >= 3 | ||
119 | #define DPRINT(cond, ...) \ | 118 | #define DPRINT(cond, ...) \ |
120 | if ((dev->debug & (cond)) == (cond)) { \ | 119 | if ((dev->debug & (cond)) == (cond)) { \ |
121 | snd_printk (__VA_ARGS__); \ | 120 | snd_printk (__VA_ARGS__); \ |
122 | } | 121 | } |
123 | #else | 122 | #else |
124 | #define DPRINT(cond, args...) \ | ||
125 | if ((dev->debug & (cond)) == (cond)) { \ | ||
126 | snd_printk (args); \ | ||
127 | } | ||
128 | #endif | ||
129 | #else | ||
130 | #define DPRINT(cond, args...) | 123 | #define DPRINT(cond, args...) |
131 | #endif /* WF_DEBUG */ | 124 | #endif /* WF_DEBUG */ |
132 | 125 | ||
diff --git a/sound/oss/i810_audio.c b/sound/oss/i810_audio.c index b9a640fe48b1..4600cd6742ce 100644 --- a/sound/oss/i810_audio.c +++ b/sound/oss/i810_audio.c | |||
@@ -3359,12 +3359,6 @@ static int __devinit i810_probe(struct pci_dev *pci_dev, const struct pci_device | |||
3359 | goto out_region2; | 3359 | goto out_region2; |
3360 | } | 3360 | } |
3361 | 3361 | ||
3362 | if (request_irq(card->irq, &i810_interrupt, SA_SHIRQ, | ||
3363 | card_names[pci_id->driver_data], card)) { | ||
3364 | printk(KERN_ERR "i810_audio: unable to allocate irq %d\n", card->irq); | ||
3365 | goto out_pio; | ||
3366 | } | ||
3367 | |||
3368 | if (card->use_mmio) { | 3362 | if (card->use_mmio) { |
3369 | if (request_mem_region(card->ac97base_mmio_phys, 512, "ich_audio MMBAR")) { | 3363 | if (request_mem_region(card->ac97base_mmio_phys, 512, "ich_audio MMBAR")) { |
3370 | if ((card->ac97base_mmio = ioremap(card->ac97base_mmio_phys, 512))) { /*@FIXME can ioremap fail? don't know (jsaw) */ | 3364 | if ((card->ac97base_mmio = ioremap(card->ac97base_mmio_phys, 512))) { /*@FIXME can ioremap fail? don't know (jsaw) */ |
@@ -3395,10 +3389,8 @@ static int __devinit i810_probe(struct pci_dev *pci_dev, const struct pci_device | |||
3395 | } | 3389 | } |
3396 | 3390 | ||
3397 | /* initialize AC97 codec and register /dev/mixer */ | 3391 | /* initialize AC97 codec and register /dev/mixer */ |
3398 | if (i810_ac97_init(card) <= 0) { | 3392 | if (i810_ac97_init(card) <= 0) |
3399 | free_irq(card->irq, card); | ||
3400 | goto out_iospace; | 3393 | goto out_iospace; |
3401 | } | ||
3402 | pci_set_drvdata(pci_dev, card); | 3394 | pci_set_drvdata(pci_dev, card); |
3403 | 3395 | ||
3404 | if(clocking == 0) { | 3396 | if(clocking == 0) { |
@@ -3410,7 +3402,6 @@ static int __devinit i810_probe(struct pci_dev *pci_dev, const struct pci_device | |||
3410 | if ((card->dev_audio = register_sound_dsp(&i810_audio_fops, -1)) < 0) { | 3402 | if ((card->dev_audio = register_sound_dsp(&i810_audio_fops, -1)) < 0) { |
3411 | int i; | 3403 | int i; |
3412 | printk(KERN_ERR "i810_audio: couldn't register DSP device!\n"); | 3404 | printk(KERN_ERR "i810_audio: couldn't register DSP device!\n"); |
3413 | free_irq(card->irq, card); | ||
3414 | for (i = 0; i < NR_AC97; i++) | 3405 | for (i = 0; i < NR_AC97; i++) |
3415 | if (card->ac97_codec[i] != NULL) { | 3406 | if (card->ac97_codec[i] != NULL) { |
3416 | unregister_sound_mixer(card->ac97_codec[i]->dev_mixer); | 3407 | unregister_sound_mixer(card->ac97_codec[i]->dev_mixer); |
@@ -3419,6 +3410,13 @@ static int __devinit i810_probe(struct pci_dev *pci_dev, const struct pci_device | |||
3419 | goto out_iospace; | 3410 | goto out_iospace; |
3420 | } | 3411 | } |
3421 | 3412 | ||
3413 | if (request_irq(card->irq, &i810_interrupt, SA_SHIRQ, | ||
3414 | card_names[pci_id->driver_data], card)) { | ||
3415 | printk(KERN_ERR "i810_audio: unable to allocate irq %d\n", card->irq); | ||
3416 | goto out_iospace; | ||
3417 | } | ||
3418 | |||
3419 | |||
3422 | card->initializing = 0; | 3420 | card->initializing = 0; |
3423 | return 0; | 3421 | return 0; |
3424 | 3422 | ||