patch-2.1.94 linux/drivers/block/ide-proc.c

Next file: linux/drivers/char/Config.in
Previous file: linux/drivers/acorn/scsi/powertec.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.93/linux/drivers/block/ide-proc.c linux/drivers/block/ide-proc.c
@@ -254,11 +254,13 @@
 static int proc_ide_read_config
 	(char *page, char **start, off_t off, int count, int *eof, void *data)
 {
-	ide_hwif_t	*hwif = (ide_hwif_t *)data;
 	char		*out = page;
-	int		len, reg = 0;
+	int		len;
 
 #ifdef CONFIG_BLK_DEV_IDEPCI
+	ide_hwif_t	*hwif = (ide_hwif_t *)data;
+	int		reg = 0;
+
 	struct pci_dev *dev = hwif->pci_dev;
 
 	out += sprintf(out, "pci bus %02x device %02x vid %04x did %04x channel %d\n",

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