]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - arch/m68k/sun3x/prom.c
m68k: early parameter support
[linux-3.10.git] / arch / m68k / sun3x / prom.c
index f23d4255a6fa3ad5a13e1655c748010e4a26a1ba..48f8eb7b15653efdb5f66f154801ea63b7b20f10 100644 (file)
@@ -73,8 +73,6 @@ void sun3x_reboot(void)
        (*romvec->pv_reboot)("vmlinux");
 }
 
-extern char m68k_debug_device[];
-
 static void sun3x_prom_write(struct console *co, const char *s,
                              unsigned int count)
 {
@@ -119,13 +117,18 @@ void sun3x_prom_init(void)
         * XXX this is futile since we restore the vbr first - oops
         */
        vectors[VEC_TRAP14] = sun3x_prom_abort;
+}
 
+static int __init sun3x_debug_setup(char *arg)
+{
        /* If debug=prom was specified, start the debug console */
-
-       if (!strcmp(m68k_debug_device, "prom"))
+       if (MACH_IS_SUN3X && !strcmp(arg, "prom"))
                register_console(&sun3x_debug);
+       return 0;
 }
 
+early_param("debug", sun3x_debug_setup);
+
 /* some prom functions to export */
 int prom_getintdefault(int node, char *property, int deflt)
 {