Skip to content

Commit fa809d7

Browse files
Christoph Hellwigaegl
authored andcommitted
ia64: move the ROOT_DEV setup to common code
I'm not sure how useful a platform default ROOT_DEV is these days, but it pretty sure isn't machvec dependent. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lkml.kernel.org/r/20190813072514.23299-25-hch@lst.de Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent 974f83e commit fa809d7

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎arch/ia64/dig/setup.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
#include <linux/init.h>
1414
#include <linux/delay.h>
1515
#include <linux/kernel.h>
16-
#include <linux/kdev_t.h>
1716
#include <linux/string.h>
1817
#include <linux/screen_info.h>
1918
#include <linux/console.h>
2019
#include <linux/timex.h>
2120
#include <linux/sched.h>
22-
#include <linux/root_dev.h>
2321

2422
#include <asm/io.h>
2523
#include <asm/machvec.h>
@@ -30,13 +28,6 @@ dig_setup (char **cmdline_p)
3028
{
3129
unsigned int orig_x, orig_y, num_cols, num_rows, font_height;
3230

33-
/*
34-
* Default to /dev/sda2. This assumes that the EFI partition
35-
* is physical disk 1 partition 1 and the Linux root disk is
36-
* physical disk 1 partition 2.
37-
*/
38-
ROOT_DEV = Root_SDA2; /* default to second partition on first drive */
39-
4031
#ifdef CONFIG_SMP
4132
init_smp_config();
4233
#endif

‎arch/ia64/kernel/setup.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <linux/console.h>
3131
#include <linux/delay.h>
3232
#include <linux/cpu.h>
33+
#include <linux/kdev_t.h>
3334
#include <linux/kernel.h>
3435
#include <linux/memblock.h>
3536
#include <linux/reboot.h>
@@ -41,6 +42,7 @@
4142
#include <linux/threads.h>
4243
#include <linux/screen_info.h>
4344
#include <linux/dmi.h>
45+
#include <linux/root_dev.h>
4446
#include <linux/serial.h>
4547
#include <linux/serial_core.h>
4648
#include <linux/efi.h>
@@ -599,6 +601,13 @@ setup_arch (char **cmdline_p)
599601
if (!nomca)
600602
ia64_mca_init();
601603

604+
/*
605+
* Default to /dev/sda2. This assumes that the EFI partition
606+
* is physical disk 1 partition 1 and the Linux root disk is
607+
* physical disk 1 partition 2.
608+
*/
609+
ROOT_DEV = Root_SDA2; /* default to second partition on first drive */
610+
602611
platform_setup(cmdline_p);
603612
paging_init();
604613

0 commit comments

Comments
 (0)