From bf4b83e5f4484c4398ea4c1a0cf8ff962fbfe7d6 Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Mon, 20 Oct 2003 02:49:55 -0700 Subject: [PATCH] [PATCH] fix drivers/ide/pci/siimage.c for PROC_FS=n From: "Noah J. Misch" The Silicon Image driver is not building properly when CONFIG_PROC_FS is unset. This patch corrects that problem. It appears as though several utility functions at the top of drivers/ide/pci/siimage.c that the driver always needs accidentally fell within an #ifdef CONFIG_PROC_FS. I also removed an excess include while I noticed it. --- drivers/ide/pci/siimage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ide/pci/siimage.c b/drivers/ide/pci/siimage.c index 9f56898c23f1c..b9bd6d3a66ebb 100644 --- a/drivers/ide/pci/siimage.c +++ b/drivers/ide/pci/siimage.c @@ -35,13 +35,13 @@ #include "siimage.h" #if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS) -#include #include static u8 siimage_proc = 0; #define SIIMAGE_MAX_DEVS 16 static struct pci_dev *siimage_devs[SIIMAGE_MAX_DEVS]; static int n_siimage_devs; +#endif /* defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS) */ /** * pdev_is_sata - check if device is SATA @@ -120,7 +120,8 @@ static inline unsigned long siimage_seldev(ide_drive_t *drive, int r) base |= drive->select.b.unit << drive->select.b.unit; return base; } - + +#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS) /** * print_siimage_get_info - print minimal proc information * @buf: buffer to write into (kernel space) -- 2.53.0