patch-2.4.19 linux-2.4.19/drivers/sbus/audio/cs4231.c
Next file: linux-2.4.19/drivers/sbus/char/openprom.c
Previous file: linux-2.4.19/drivers/sbus/audio/amd7930.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/sbus/audio/cs4231.c
- Orig date:
Wed Oct 10 23:42:46 2001
diff -urN linux-2.4.18/drivers/sbus/audio/cs4231.c linux-2.4.19/drivers/sbus/audio/cs4231.c
@@ -35,7 +35,7 @@
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/sbus.h>
-#ifdef CONFIG_PCI
+#if defined(CONFIG_PCI) && defined(CONFIG_SPARC64)
#define EB4231_SUPPORT
#include <asm/ebus.h>
#include <asm/pbm.h>
@@ -2210,7 +2210,6 @@
/* Attach the interrupt handler to the audio interrupt. */
cs4231_chip->irq = sdev->irqs[0];
request_irq(cs4231_chip->irq, cs4231_interrupt, SA_SHIRQ, "cs4231", drv);
- enable_irq(cs4231_chip->irq);
cs4231_chip->nirqs = 1;
cs4231_enable_interrupts(drv);
@@ -2224,7 +2223,6 @@
if (err < 0) {
printk(KERN_ERR "cs4231: unable to register\n");
cs4231_disable_interrupts(drv);
- disable_irq(cs4231_chip->irq);
free_irq(cs4231_chip->irq, drv);
sbus_iounmap(cs4231_chip->regs, cs4231_chip->regs_size);
kfree(drv->private);
@@ -2312,9 +2310,7 @@
bail:
printk(KERN_ERR "cs4231: unable to register\n");
cs4231_disable_interrupts(drv);
- disable_irq(cs4231_chip->irq);
free_irq(cs4231_chip->irq, drv);
- disable_irq(cs4231_chip->irq2);
free_irq(cs4231_chip->irq2, drv);
kfree(drv->private);
return -EIO;
@@ -2371,7 +2367,6 @@
cs4231_disable_interrupts(drv);
unregister_sparcaudio_driver(drv, 1);
- disable_irq(cs4231_chip->irq);
free_irq(cs4231_chip->irq, drv);
if (!(cs4231_chip->status & CS_STATUS_IS_EBUS)) {
sbus_iounmap(cs4231_chip->regs, cs4231_chip->regs_size);
@@ -2380,7 +2375,6 @@
iounmap(cs4231_chip->regs);
iounmap(cs4231_chip->eb2p);
iounmap(cs4231_chip->eb2c);
- disable_irq(cs4231_chip->irq2);
free_irq(cs4231_chip->irq2, drv);
#endif
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)