lkml.org 
[lkml]   [2000]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectdrivers/parport/parport_pc.c
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.075 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site