Re: drivers/parport/parport_pc.c

From: Tim Waugh (twaugh@redhat.com)
Date: Mon Feb 28 2000 - 06:40:14 EST


On Sun, 27 Feb 2000, Pete Clements wrote:

> Patch applied, however still fails compile........

Try this one too. For the record, I don't think that drivers should have
to worry about this stuff.

Tim.
*/

Index: drivers/parport/parport_pc.c
===================================================================
RCS file: /usr/local/src/cvsroot/linux/drivers/parport/parport_pc.c,v
retrieving revision 1.31
diff -u -r1.31 parport_pc.c
--- drivers/parport/parport_pc.c 2000/02/28 11:02:40 1.31
+++ drivers/parport/parport_pc.c 2000/02/28 11:38:17
@@ -1835,6 +1835,7 @@
 
 static int __devinit parport_pc_init_superio(void)
 {
+#ifdef CONFIG_PCI
         const struct pci_device_id *id;
         struct pci_dev *pdev;
         
@@ -1845,10 +1846,10 @@
                 
                 return parport_pc_superio_info[id->driver_data].probe (pdev);
         }
+#endif /* CONFIG_PCI */
         
         return 0; /* zero devices found */
 }
-
 
 /* Look for PCI parallel port cards. */
 static int __init parport_pc_init_pci (int irq, int dma)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:19 EST