blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / um / kernel / early_printk.c
blob4a0800bc37b202b53f8e81ac45eaba36cae16052
1 /*
2 * Copyright (C) 2011 Richard Weinberger <richrd@nod.at>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #include <linux/kernel.h>
10 #include <linux/console.h>
11 #include <linux/init.h>
12 #include <os.h>
14 static void early_console_write(struct console *con, const char *s, unsigned int n)
16 um_early_printk(s, n);
19 static struct console early_console_dev = {
20 .name = "earlycon",
21 .write = early_console_write,
22 .flags = CON_BOOT,
23 .index = -1,
26 static int __init setup_early_printk(char *buf)
28 if (!early_console) {
29 early_console = &early_console_dev;
30 register_console(&early_console_dev);
32 return 0;
35 early_param("earlyprintk", setup_early_printk);