patch-2.1.75 linux/drivers/char/tga.c

Next file: linux/drivers/char/wdt.c
Previous file: linux/drivers/char/sysrq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.74/linux/drivers/char/tga.c linux/drivers/char/tga.c
@@ -27,6 +27,7 @@
 #include <linux/bios32.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/console.h>
 
 #include <asm/io.h>
 #include <asm/system.h>
@@ -446,14 +447,21 @@
 
 /*
  *	See if we have a TGA card.
+ *	Just a placeholder at the moment, because of the strange
+ *	way the TGA card is initialized. This has to be enabled when
+ *	the kernel initializes PCI devices before the console.
  */
-__initfunc(int con_is_present())
+__initfunc(int con_is_present(void))
 {
+#if 0
+	unsigned char pci_bus, pci_devfn;
 	int status;
 
 	status = pcibios_find_device (PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA,
 				      0, &pci_bus, &pci_devfn);
 	return (status == PCIBIOS_DEVICE_NOT_FOUND) ? 0 : 1;
+#endif
+	return 1;
 }
 
 /*

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