~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/um/kernel/early_printk.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Richard Weinberger <richrd@nod.at>
 
3
 *
 
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
 */
 
8
 
 
9
#include <linux/kernel.h>
 
10
#include <linux/console.h>
 
11
#include <linux/init.h>
 
12
#include "os.h"
 
13
 
 
14
static void early_console_write(struct console *con, const char *s, unsigned int n)
 
15
{
 
16
        um_early_printk(s, n);
 
17
}
 
18
 
 
19
static struct console early_console = {
 
20
        .name = "earlycon",
 
21
        .write = early_console_write,
 
22
        .flags = CON_BOOT,
 
23
        .index = -1,
 
24
};
 
25
 
 
26
static int __init setup_early_printk(char *buf)
 
27
{
 
28
        register_console(&early_console);
 
29
 
 
30
        return 0;
 
31
}
 
32
 
 
33
early_param("earlyprintk", setup_early_printk);