hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/sh/kernel/setup.c
....@@ -32,6 +32,7 @@
3232 #include <linux/of.h>
3333 #include <linux/of_fdt.h>
3434 #include <linux/uaccess.h>
35
+#include <uapi/linux/mount.h>
3536 #include <asm/io.h>
3637 #include <asm/page.h>
3738 #include <asm/elf.h>
....@@ -43,6 +44,7 @@
4344 #include <asm/mmu_context.h>
4445 #include <asm/mmzone.h>
4546 #include <asm/sparsemem.h>
47
+#include <asm/platform_early.h>
4648
4749 /*
4850 * Initialize loops_per_jiffy as 10000000 (1000MIPS).
....@@ -288,8 +290,6 @@
288290
289291 #ifdef CONFIG_BLK_DEV_RAM
290292 rd_image_start = RAMDISK_FLAGS & RAMDISK_IMAGE_START_MASK;
291
- rd_prompt = ((RAMDISK_FLAGS & RAMDISK_PROMPT_FLAG) != 0);
292
- rd_doload = ((RAMDISK_FLAGS & RAMDISK_LOAD_FLAG) != 0);
293293 #endif
294294
295295 if (!MOUNT_ROOT_RDONLY)
....@@ -327,7 +327,7 @@
327327 sh_mv_setup();
328328
329329 /* Let earlyprintk output early console messages */
330
- early_platform_driver_probe("earlyprintk", 1, 1);
330
+ sh_early_platform_driver_probe("earlyprintk", 1, 1);
331331
332332 #ifdef CONFIG_OF_FLATTREE
333333 #ifdef CONFIG_USE_BUILTIN_DTB
....@@ -339,10 +339,6 @@
339339
340340 paging_init();
341341
342
-#ifdef CONFIG_DUMMY_CONSOLE
343
- conswitchp = &dummy_con;
344
-#endif
345
-
346342 /* Perform the machine specific initialisation */
347343 if (likely(sh_mv.mv_setup))
348344 sh_mv.mv_setup(cmdline_p);
....@@ -353,7 +349,7 @@
353349 /* processor boot mode configuration */
354350 int generic_mode_pins(void)
355351 {
356
- pr_warning("generic_mode_pins(): missing mode pin configuration\n");
352
+ pr_warn("generic_mode_pins(): missing mode pin configuration\n");
357353 return 0;
358354 }
359355