]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/um/drivers/tty.c
[PATCH] uml: mconsole locking
[mv-sheeva.git] / arch / um / drivers / tty.c
index 9f70edf5d8ef027c645de108ef9cd901f0f8cd27..d95d64309eaf3defc373ba6195a0b5fc03cbea45 100644 (file)
@@ -11,6 +11,7 @@
 #include "user_util.h"
 #include "user.h"
 #include "os.h"
+#include "um_malloc.h"
 
 struct tty_chan {
        char *dev;
@@ -18,7 +19,7 @@ struct tty_chan {
        struct termios tt;
 };
 
-static void *tty_chan_init(char *str, int device, struct chan_opts *opts)
+static void *tty_chan_init(char *str, int device, const struct chan_opts *opts)
 {
        struct tty_chan *data;
 
@@ -62,7 +63,7 @@ static int tty_open(int input, int output, int primary, void *d,
        return fd;
 }
 
-struct chan_ops tty_ops = {
+const struct chan_ops tty_ops = {
        .type           = "tty",
        .init           = tty_chan_init,
        .open           = tty_open,