]> git.hungrycats.org Git - linux/commitdiff
Fixup kdev_t changes in various ARM files
authorRussell King <rmk@flint.arm.linux.org.uk>
Wed, 20 Feb 2002 13:42:45 +0000 (13:42 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Wed, 20 Feb 2002 13:42:45 +0000 (13:42 +0000)
23 files changed:
arch/arm/mach-adifcc/arch.c
arch/arm/mach-anakin/arch.c
arch/arm/mach-epxa10db/arch.c
arch/arm/mach-iop310/arch.c
arch/arm/mach-l7200/core.c
arch/arm/mach-sa1100/adsbitsy.c
arch/arm/mach-sa1100/brutus.c
arch/arm/mach-sa1100/cerf.c
arch/arm/mach-sa1100/empeg.c
arch/arm/mach-sa1100/flexanet.c
arch/arm/mach-sa1100/freebird.c
arch/arm/mach-sa1100/graphicsclient.c
arch/arm/mach-sa1100/graphicsmaster.c
arch/arm/mach-sa1100/huw_webpanel.c
arch/arm/mach-sa1100/nanoengine.c
arch/arm/mach-sa1100/omnimeter.c
arch/arm/mach-sa1100/pangolin.c
arch/arm/mach-sa1100/pfs168.c
arch/arm/mach-sa1100/pleb.c
arch/arm/mach-sa1100/sherman.c
arch/arm/mach-sa1100/simpad.c
arch/arm/mach-sa1100/system3.c
arch/arm/mach-sa1100/victor.c

index 353af8e71fe2b42bf357cde4ac42adc63723bd67..eeaf870fcc4cd313feabd84d8c88cf9e9e43fa24 100644 (file)
@@ -7,7 +7,7 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-
+#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/major.h>
 #include <linux/fs.h>
@@ -33,7 +33,7 @@ fixup_adifcc(struct machine_desc *desc, struct param_struct *params,
 
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( 0xc0800000, 3*1024*1024 );
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
 #endif
 }
 
index 4361fabc727c557da2f351d64b5a998751a9580d..c72858e44c52aba8f999f1f61c417c2b9cd81335 100644 (file)
@@ -30,7 +30,7 @@ static void __init
 fixup_anakin(struct machine_desc *desc, struct param_struct *unused,
              char **cmdline, struct meminfo *mi)
 {
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR, 0);
        setup_ramdisk(1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE);
        setup_initrd(0xc0800000, 4 * 1024 * 1024);
 }
index 5ab0067a249c77bdd90d9123817e6c5741c73719..7eb131f9de8d35659ea590a3f4382f88386ae413 100644 (file)
@@ -18,7 +18,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
-#include <linux/config.h>
 #include <linux/types.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
@@ -46,7 +45,7 @@ epxa10db_fixup(struct machine_desc *desc, struct param_struct *params,
         mi->bank[0].node  = 0;
 
 /*
-        ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+        ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
         setup_ramdisk( 1, 0, 0, 8192 );
         setup_initrd(0xc0200000, 6*1024*1024);
 */
index 3e6956c2c7b13f3dfe1e31c1b13343ba5ec4f149..bda5f721605e22d4daeaa15d167fd1c2b6cd0955 100644 (file)
@@ -9,7 +9,7 @@
  * published by the Free Software Foundation.
  *
  */
-
+#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/major.h>
 #include <linux/fs.h>
@@ -44,7 +44,7 @@ fixup_iq80310(struct machine_desc *desc, struct param_struct *params,
 #elif defined(CONFIG_BLK_DEV_INITRD)
        setup_ramdisk( 1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE );
        setup_initrd( 0xc0800000, 4*1024*1024 );
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0); /* /dev/ram */
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR, 0); /* /dev/ram */
 #endif
 }
 
index 8c91b16b070053d2b23925c4284e624c3590f734..3347a97028df9afde52beb76eb0b1626fcc332a4 100644 (file)
@@ -5,6 +5,7 @@
  *
  *  Extra MM routines for L7200 architecture
  */
+#include <linux/config.h>
 #include <linux/init.h>
 
 #include <asm/hardware.h>
@@ -90,7 +91,7 @@ fixup_l7200(struct machine_desc *desc, struct param_struct *unused,
         mi->bank[0].size  = (32*1024*1024);
         mi->bank[0].node  = 0;
 
-        ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+        ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
         setup_ramdisk( 1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE);
         setup_initrd( __phys_to_virt(0xf1000000), 0x005dac7b);
 
index c2acd141e3ece0f88d300df01e0c88f61d54ce31..eedeabb18634ebf0bc7c8b54099eb27e168dc3f2 100644 (file)
@@ -26,8 +26,6 @@
 #include <asm/mach/map.h>
 #include <asm/mach/serial_sa1100.h>
 
-#include <asm/arch/irq.h>
-
 #include "generic.h"
 #include "sa1111.h"
 
@@ -120,7 +118,7 @@ fixup_adsbitsy(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 0, 0xc0000000, 32*1024*1024 );
        mi->nr_banks = 1;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
 }
index f9b50ac8235be574f5df580e1195da3946ef8491..0e4c4ba3faadf47135421236ed04085dc9893879 100644 (file)
@@ -32,7 +32,7 @@ fixup_brutus(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 3, 0xd8000000, 4*1024*1024 );
        mi->nr_banks = 4;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xd8000000), 3*1024*1024 );
 }
index 73868b2ebc638a422d526360ed9980d6a2ebfc4f..bdbb7b8280b2f2179bc1558e1bf92ba02a1413b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * linux/arch/arm/mach-sa1100/cerf.c
  */
-
+#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/tty.h>
@@ -55,7 +55,7 @@ fixup_cerf(struct machine_desc *desc, struct param_struct *params,
 #error "Undefined memory size for Cerfboard."
 #endif
 
-//     ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+//     ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
 //     setup_ramdisk(1,  0, 0, 8192);
 //     // Save 2Meg for RAMDisk
 //     setup_initrd(0xc0500000, 3*1024*1024);
index 5ea32f2f58805095a6b7babe615d43871b4f7dbb..682e99d522d273164e60f45c7204c31a9b20f013 100644 (file)
@@ -24,7 +24,7 @@ fixup_empeg(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 1, 0xc8000000, 4*1024*1024 );
        mi->nr_banks = 2;
 
-       ROOT_DEV = MKDEV( 3, 1 );  /* /dev/hda1 */
+       ROOT_DEV = mk_kdev( 3, 1 );  /* /dev/hda1 */
        setup_ramdisk( 1, 0, 0, 4096 );
        setup_initrd( 0xd0000000+((1024-320)*1024), (320*1024) );
 }
index fb7d57ea9567291ae08e95b8dfac167adefb7827..8ce7cea310c854d80530b6f4d484be361dc951c9 100644 (file)
@@ -9,8 +9,6 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-
-#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -113,7 +111,6 @@ static void flexanet_set_mctrl(struct uart_port *port, u_int mctrl)
  *
  * get_mctrl : set state of modem control lines
  * set_mctrl : set the modem control lines
- * enable_ms : enable modem-status interrupts
  * pm        : power-management. Turn device on/off.
  *
  */
@@ -121,7 +118,6 @@ static struct sa1100_port_fns       flexanet_port_fns __initdata =
 {
        set_mctrl : flexanet_set_mctrl,
        get_mctrl : flexanet_get_mctrl,
-       enable_ms : NULL,
        pm        : NULL,
 };
 
@@ -168,7 +164,7 @@ fixup_flexanet(struct machine_desc *desc, struct param_struct *params,
        mi->nr_banks = 1;
 
        /* setup ramdisk */
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( 0xc0800000, 3*1024*1024 );
 }
index 3ba93785ab4cc7482db38bd7b433232c1a74ffa9..3a28685b6a21d1b7702850cbea252440e90d79c2 100644 (file)
@@ -58,7 +58,7 @@ fixup_freebird(struct machine_desc *desc, struct param_struct *params,
 #ifdef CONFIG_SA1100_FREEBIRD_OLD
        SET_BANK( 0, 0xc0000000, 32*1024*1024 );
        mi->nr_banks = 1;
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0 ,0 , 8192 );
        setup_initrd( 0xc0800000, 3*1024*1024 );
 #endif
index 037e950c29f70b78580085c95e12e87cbe2c6272..6bcfcbdaba256bf3ae6c7506e1ccb5e25f394205 100644 (file)
@@ -130,7 +130,7 @@ fixup_graphicsclient(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 1, 0xc8000000, 16*1024*1024 );
        mi->nr_banks = 2;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
 }
index 9972bdbf661cb423de05e9c05d98661d9f537264..4366a75bc5720eacc0d6387a2d00f0d1f8cea88e 100644 (file)
@@ -193,7 +193,7 @@ fixup_graphicsmaster(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 1, 0xc8000000, 16*1024*1024 );
        mi->nr_banks = 2;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
 }
index 969e7c84ce7278002012585d10d1d4430055fc95..41a8ec5eedbfb6d2d7bb9cd311c763b41b8a0a5a 100644 (file)
@@ -2,8 +2,6 @@
  * linux/arch/arm/mach-sa1100/huw_webpanel.c
  *
  */
-
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
@@ -66,7 +64,7 @@ fixup_huw_webpanel(struct machine_desc *desc, struct param_struct *params,
         **/
        SET_BANK( 0, 0xc0000000, ((32*1024 - (256 + 32)) * 1024));
        mi->nr_banks = 1;
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xc0800000), 8*1024*1024 );
 }
index d7f7ab2134815d4a00e74ef4c63418fed8d2e7fa..8aad8bd919b3d2cd8f32a4489a7833e4b6676dd0 100644 (file)
@@ -23,7 +23,7 @@ fixup_nanoengine(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 0, 0xc0000000, 32*1024*1024 );
        mi->nr_banks = 1;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
 
index 8258fdc1998153053d3922ffd658ec31b884496a..76eaa1fb724da57134b05cc9540206c54f3cee39 100644 (file)
@@ -47,7 +47,7 @@ fixup_omnimeter(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 0, 0xc0000000, 16*1024*1024 );
        mi->nr_banks = 1;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xd0000000), 0x00400000 );
 }
index a9637352a45d618590d818ae84d721600ff310a8..f27c7f4aa83658815bdbf5cee5ad0fea9c758e7e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * linux/arch/arm/mach-sa1100/pangolin.c
  */
-
+#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/tty.h>
@@ -23,7 +23,7 @@ fixup_pangolin(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 0, 0xc0000000, 128*1024*1024 );
        mi->nr_banks = 1;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 16384 );
        setup_initrd( 0xc0800000, 3*1024*1024 );
 }
index 19085bffb658e445e545a91796dd557ec09278f4..8820c4a97b3fe1b1a9acb27050ced205d7ed0b06 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * linux/arch/arm/mach-sa1100/pfs168.c
  */
-
+#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/tty.h>
@@ -96,7 +96,7 @@ fixup_pfs168(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 0, 0xc0000000, 16*1024*1024 );
        mi->nr_banks = 1;
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( 0xc0800000, 3*1024*1024 );
 }
index 6003b5d71d6be5862afe368671143b1cde676f5e..49c608198034d7a8a3ae720dcb86a6e20bb77ed5 100644 (file)
@@ -28,7 +28,7 @@ fixup_pleb(struct machine_desc *desc, struct param_struct *params,
        /* make it 1 if a 16MB memory card is used */
        mi->nr_banks = 2; /* Default 32MB */
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR, 0);
        setup_ramdisk(1, 0, 0, 8192);
        setup_initrd(0xc0400000, 4*1024*1024);
 }
index 658d164234f8bb29cdd7ae67cbd757f789581679..3fe87bc3ad327a813199bc15764c102549de1a71 100644 (file)
@@ -24,7 +24,7 @@ fixup_sherman(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 1, 0xc8000000, 64*1024*1024 );
        mi->nr_banks = 2;
 
-       ROOT_DEV = MKDEV( 60, 2 );
+       ROOT_DEV = mk_kdev( 60, 2 );
        setup_ramdisk( 1, 0, 0, 8192 );
 //     setup_initrd( 0xc0400000, 8*1024*1024 );
 }
index 514d6ca3706b593a8ca70eb1f16c4a9cbd108d25..8f5e76d1e22043ff29045db42b6376692aa15130 100644 (file)
@@ -50,7 +50,7 @@ fixup_simpad(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 0, 0xc0000000, 32*1024*1024 );
 #endif
        mi->nr_banks = 1;
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
 }
index 028558a56a0784c0fe01ac056122234784ffd92d..9745fea257206538502d82aaac35f6ecf10f03da 100644 (file)
@@ -54,8 +54,6 @@
 #include <asm/mach/irq.h>
 #include <asm/mach/serial_sa1100.h>
 
-#include <asm/arch/irq.h>
-
 #include <linux/serial_core.h>
 
 #include "generic.h"
@@ -227,7 +225,7 @@ static void __init fixup_system3(struct machine_desc *desc,
 {
        DPRINTK( "%s\n", "START" );
 
-       ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+       ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( 0xc0800000, 8*1024*1024 );
 }
index 4fca53c5f0ab955d31e9e0a8ec46a7a61bab0dde..a4378e32d4a299b0ae0953c0d3bdcec1cac6001f 100644 (file)
@@ -48,7 +48,7 @@ fixup_victor(struct machine_desc *desc, struct param_struct *params,
        SET_BANK( 0, 0xc0000000, 4*1024*1024 );
        mi->nr_banks = 1;
 
-       ROOT_DEV = MKDEV( 60, 2 );
+       ROOT_DEV = mk_kdev( 60, 2 );
 
        /* Get command line parameters passed from the loader (if any) */
        if( *((char*)0xc0000000) )