diff options
Diffstat (limited to 'arch/um/drivers/port_user.c')
-rw-r--r-- | arch/um/drivers/port_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/port_user.c b/arch/um/drivers/port_user.c index c43e8bb325..f2e8fc42ec 100644 --- a/arch/um/drivers/port_user.c +++ b/arch/um/drivers/port_user.c | |||
@@ -27,7 +27,7 @@ struct port_chan { | |||
27 | char dev[sizeof("32768\0")]; | 27 | char dev[sizeof("32768\0")]; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | static void *port_init(char *str, int device, struct chan_opts *opts) | 30 | static void *port_init(char *str, int device, const struct chan_opts *opts) |
31 | { | 31 | { |
32 | struct port_chan *data; | 32 | struct port_chan *data; |
33 | void *kern_data; | 33 | void *kern_data; |
@@ -100,7 +100,7 @@ static void port_close(int fd, void *d) | |||
100 | os_close_file(fd); | 100 | os_close_file(fd); |
101 | } | 101 | } |
102 | 102 | ||
103 | struct chan_ops port_ops = { | 103 | const struct chan_ops port_ops = { |
104 | .type = "port", | 104 | .type = "port", |
105 | .init = port_init, | 105 | .init = port_init, |
106 | .open = port_open, | 106 | .open = port_open, |