Messages in this thread Patch in this message | | | From | Russell King <> | Subject | drivers/parport/parport_pc.c | Date | Sun, 27 Feb 2000 16:41:05 +0000 (GMT) |
| |
Hi,
The following patch allows parport_pc.c to be compiled on architectures without PCI support.
I can't currently reproduce the error I was getting until I get the kernel into a compilable state for the architectures which do not have PCI support.
diff -urN linux-orig/drivers/parport/parport_pc.c linux/drivers/parport/parport_pc.c --- linux-orig/drivers/parport/parport_pc.c Sun Feb 27 09:44:42 2000 +++ linux/drivers/parport/parport_pc.c Sun Feb 27 10:13:13 2000 @@ -1991,6 +1991,7 @@ } } +#ifdef CONFIG_PCI /* Look for parallel controllers that we don't know about. */ pci_for_each_dev(pcidev) { const int class_noprogif = pcidev->class & ~0xff; @@ -2011,6 +2012,7 @@ "tim@cyberelk.demon.co.uk\n", pcidev->vendor, pcidev->device); } +#endif return count; }
_____ |_____| ------------------------------------------------- ---+---+- | | Russell King rmk@arm.linux.org.uk --- --- | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / | | +-+-+ --- -+- / | THE developer of ARM Linux |+| /|\ / | | | --- | +-+-+ ------------------------------------------------- /\\\ | - 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/
| |