]> git.baikalelectronics.ru Git - kernel.git/commitdiff
[POWERPC] Platforms shouldn't mess with ROOT_DEV
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 10 Oct 2007 18:48:28 +0000 (04:48 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 11 Oct 2007 10:40:43 +0000 (20:40 +1000)
There is no good reason for board platform code to mess with the
ROOT_DEV.  Remove it from all in-tree platforms except powermac.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/52xx/efika.c
arch/powerpc/platforms/cell/setup.c
arch/powerpc/platforms/celleb/setup.c
arch/powerpc/platforms/chrp/setup.c
arch/powerpc/platforms/pseries/setup.c

index 4263158b3274f7bb9a417dd10808d17d0d94c376..0b1e60a010ba579d5b18e242583740d48355905c 100644 (file)
@@ -197,15 +197,6 @@ static void __init efika_setup_arch(void)
 {
        rtas_initialize();
 
-#ifdef CONFIG_BLK_DEV_INITRD
-       initrd_below_start_ok = 1;
-
-       if (initrd_start)
-               ROOT_DEV = Root_RAM0;
-       else
-#endif
-               ROOT_DEV = Root_SDA2;   /* sda2 (sda1 is for the kernel) */
-
        efika_pcisetup();
 
 #ifdef CONFIG_PM
index 5343e3844e2a29a2830fd9d88f8b191177c5a3b5..98e7ef8e6fc66a5becd6c3cd18a676bd6ef96fdb 100644 (file)
@@ -171,11 +171,6 @@ static void __init cell_setup_arch(void)
        /* init to some ~sane value until calibrate_delay() runs */
        loops_per_jiffy = 50000000;
 
-       if (ROOT_DEV == 0) {
-               printk("No ramdisk, default root is /dev/hda2\n");
-               ROOT_DEV = Root_HDA2;
-       }
-
        /* Find and initialize PCI host bridges */
        init_pci_config_tokens();
        find_and_init_phbs();
index 0f1dddb81cd2a36b2b11457b0d1ae02249fec22a..1769d755eff30670eee5bd58f0c498b618aec4ce 100644 (file)
@@ -101,11 +101,6 @@ static void __init celleb_setup_arch(void)
        /* init to some ~sane value until calibrate_delay() runs */
        loops_per_jiffy = 50000000;
 
-       if (ROOT_DEV == 0) {
-               printk("No ramdisk, default root is /dev/hda2\n");
-               ROOT_DEV = Root_HDA2;
-       }
-
 #ifdef CONFIG_DUMMY_CONSOLE
        conswitchp = &dummy_con;
 #endif
index 96498ad7b94385cea4f728769763160f6546792b..59306261f5b2991a329be96680c771ef134a9852 100644 (file)
@@ -290,16 +290,6 @@ void __init chrp_setup_arch(void)
                ppc_md.set_rtc_time     = rtas_set_rtc_time;
        }
 
-#ifdef CONFIG_BLK_DEV_INITRD
-       /* this is fine for chrp */
-       initrd_below_start_ok = 1;
-
-       if (initrd_start)
-               ROOT_DEV = Root_RAM0;
-       else
-#endif
-               ROOT_DEV = Root_SDA2; /* sda2 (sda1 is for the kernel) */
-
        /* On pegasos, enable the L2 cache if not already done by OF */
        pegasos_set_l2cr();
 
index f0b7146a110f7238abcd39d633db63dd44711481..fdb9b1c8f977e06704c714ff5d0c54366923fef4 100644 (file)
@@ -257,11 +257,6 @@ static void __init pSeries_setup_arch(void)
        /* init to some ~sane value until calibrate_delay() runs */
        loops_per_jiffy = 50000000;
 
-       if (ROOT_DEV == 0) {
-               printk("No ramdisk, default root is /dev/sda2\n");
-               ROOT_DEV = Root_SDA2;
-       }
-
        fwnmi_init();
 
        /* Find and initialize PCI host bridges */