]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/sh/kernel/sh_bios.c
early_printk: consolidate random copies of identical code
[karo-tx-linux.git] / arch / sh / kernel / sh_bios.c
index 47475cca068a95e361eeba16845db285f13e1c58..fe584e51696412e9eb9719251739f42ab679c4d3 100644 (file)
@@ -104,6 +104,7 @@ void sh_bios_vbr_reload(void)
                );
 }
 
+#ifdef CONFIG_EARLY_PRINTK
 /*
  *     Print a string through the BIOS
  */
@@ -144,8 +145,6 @@ static struct console bios_console = {
        .index          = -1,
 };
 
-static struct console *early_console;
-
 static int __init setup_early_printk(char *buf)
 {
        int keep_early = 0;
@@ -170,3 +169,4 @@ static int __init setup_early_printk(char *buf)
        return 0;
 }
 early_param("earlyprintk", setup_early_printk);
+#endif