]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix drivers/ide/pci/siimage.c for PROC_FS=n
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Mon, 20 Oct 2003 09:49:55 +0000 (02:49 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 20 Oct 2003 09:49:55 +0000 (02:49 -0700)
From: "Noah J. Misch" <noah@caltech.edu>

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

index 9f56898c23f1c2980e0aa5adf4193d1302e8182b..b9bd6d3a66ebb93ae6c890f85bc1cddd3dd2db48 100644 (file)
 #include "siimage.h"
 
 #if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
-#include <linux/stat.h>
 #include <linux/proc_fs.h>
 
 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)