Commit bf4b83e5 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] fix drivers/ide/pci/siimage.c for PROC_FS=n

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.
parent 740ba8b9
...@@ -35,13 +35,13 @@ ...@@ -35,13 +35,13 @@
#include "siimage.h" #include "siimage.h"
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS) #if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
#include <linux/stat.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
static u8 siimage_proc = 0; static u8 siimage_proc = 0;
#define SIIMAGE_MAX_DEVS 16 #define SIIMAGE_MAX_DEVS 16
static struct pci_dev *siimage_devs[SIIMAGE_MAX_DEVS]; static struct pci_dev *siimage_devs[SIIMAGE_MAX_DEVS];
static int n_siimage_devs; static int n_siimage_devs;
#endif /* defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS) */
/** /**
* pdev_is_sata - check if device is SATA * pdev_is_sata - check if device is SATA
...@@ -120,7 +120,8 @@ static inline unsigned long siimage_seldev(ide_drive_t *drive, int r) ...@@ -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; base |= drive->select.b.unit << drive->select.b.unit;
return base; return base;
} }
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
/** /**
* print_siimage_get_info - print minimal proc information * print_siimage_get_info - print minimal proc information
* @buf: buffer to write into (kernel space) * @buf: buffer to write into (kernel space)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment