patch-2.1.132 linux/drivers/macintosh/mediabay.c

Next file: linux/drivers/macintosh/via-pmu.c
Previous file: linux/drivers/fc4/soc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/drivers/macintosh/mediabay.c linux/drivers/macintosh/mediabay.c
@@ -180,7 +180,7 @@
 {
 #ifdef CONFIG_BLK_DEV_IDE
 	int	i;
-	
+
 	for (i=0; i<media_bay_count; i++)
 		if (which_bay == media_bays[i].dev_node)
 		{
@@ -196,9 +196,9 @@
 int
 check_media_bay_by_base(unsigned long base, int what)
 {
+#ifdef CONFIG_BLK_DEV_IDE
 	int	i;
 
-#ifdef CONFIG_BLK_DEV_IDE
 	for (i=0; i<media_bay_count; i++)
 		if (base == media_bays[i].cd_base)
 		{
@@ -216,9 +216,9 @@
 media_bay_set_ide_infos(struct device_node* which_bay, unsigned long base,
 	int irq, int index)
 {
-	int	i;
-	
 #ifdef CONFIG_BLK_DEV_IDE
+	int	i;
+
 	for (i=0; i<media_bay_count; i++)
 		if (which_bay == media_bays[i].dev_node)
 		{

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