patch-2.4.15 linux/drivers/parport/parport_pc.c

Next file: linux/drivers/parport/parport_serial.c
Previous file: linux/drivers/parport/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/drivers/parport/parport_pc.c linux/drivers/parport/parport_pc.c
@@ -3047,6 +3047,12 @@
 			case PARPORT_IRQ_NONE:
 			case PARPORT_IRQ_AUTO:
 				irqval[0] = val;
+				break;
+			default:
+				printk (KERN_WARNING
+					"parport_pc: irq specified "
+					"without base address.  Use 'io=' "
+					"to specify one\n");
 			}
 
 		if (dma[0] && !parport_parse_dmas (1, dma, &val))
@@ -3054,6 +3060,12 @@
 			case PARPORT_DMA_NONE:
 			case PARPORT_DMA_AUTO:
 				dmaval[0] = val;
+				break;
+			default:
+				printk (KERN_WARNING
+					"parport_pc: dma specified "
+					"without base address.  Use 'io=' "
+					"to specify one\n");
 			}
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)