patch-2.2.0-pre1 linux/drivers/sound/cs4232.c

Next file: linux/drivers/sound/es1370.c
Previous file: linux/drivers/sound/ad1848.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.132/linux/drivers/sound/cs4232.c linux/drivers/sound/cs4232.c
@@ -369,9 +369,6 @@
 	cfg.dma = dma;
 	cfg.dma2 = dma2;
 
-	if (probe_cs4232(&cfg) == 0)
-		return -ENODEV;
-
 	mpu_cfg.io_base = -1;
 	mpu_cfg.irq = -1;
 
@@ -380,6 +377,9 @@
 		mpu_cfg.irq = mpuirq;
 		probe_cs4232_mpu(&mpu_cfg); /* Bug always returns 0 not OK -- AC */
 	}
+
+	if (probe_cs4232(&cfg) == 0)
+		return -ENODEV;
 
 	attach_cs4232(&cfg);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov