]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/um/drivers/fd.c
Merge branch 'libertas' of git://git.kernel.org/pub/scm/linux/kernel/git/linville...
[linux-2.6-omap-h63xx.git] / arch / um / drivers / fd.c
index 3296e86a03a5cd3a197007c1593e127fee3c1d7c..7f083ec47a4f03bec098b528b000c1be0fb327d4 100644 (file)
@@ -9,8 +9,9 @@
 #include <termios.h>
 #include <errno.h>
 #include "user.h"
-#include "user_util.h"
 #include "chan_user.h"
+#include "os.h"
+#include "um_malloc.h"
 
 struct fd_chan {
        int fd;
@@ -19,7 +20,7 @@ struct fd_chan {
        char str[sizeof("1234567890\0")];
 };
 
-static void *fd_init(char *str, int device, struct chan_opts *opts)
+static void *fd_init(char *str, int device, const struct chan_opts *opts)
 {
        struct fd_chan *data;
        char *end;
@@ -76,7 +77,7 @@ static void fd_close(int fd, void *d)
        }
 }
 
-struct chan_ops fd_ops = {
+const struct chan_ops fd_ops = {
        .type           = "fd",
        .init           = fd_init,
        .open           = fd_open,