[U-Boot] [PATCH 5/6] fix ‘x86/video_bios: probe_pci_video’ defined but not used

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun May 10 17:31:50 CEST 2009


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 lib_i386/video_bios.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib_i386/video_bios.c b/lib_i386/video_bios.c
index d9116d4..3935d05 100644
--- a/lib_i386/video_bios.c
+++ b/lib_i386/video_bios.c
@@ -76,11 +76,12 @@ void print_bios_bios_stat(void)
 }
 #endif
 
+#ifdef CONFIG_VIDEO
+
 #define PCI_CLASS_VIDEO             3
 #define PCI_CLASS_VIDEO_STD         0
 #define PCI_CLASS_VIDEO_PROG_IF_VGA 0
 
-
 static u32 probe_pci_video(void)
 {
 	pci_dev_t devbusfn;
@@ -132,7 +133,7 @@ static u32 probe_pci_video(void)
 
 	return 0;
 }
-
+#endif /* CONFIG_VIDEO */
 
 #endif
 
@@ -176,7 +177,9 @@ int video_bios_init(void)
 
 	if (probe_isa_video()) {
 		/* No ISA board found, try the PCI bus */
+#ifdef CONFIG_PCI
 		regs.eax = probe_pci_video();
+#endif
 	}
 
 	/* Did we succeed in mapping any video bios */
-- 
1.6.2.4



More information about the U-Boot mailing list