diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-09-09 20:07:05 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-03-25 00:29:53 +0100 |
commit | 04292b2cf8f02a33cfc1054c0c51aa8c77731813 (patch) | |
tree | ff04fb51c5de7bd646d09d29d9d0ed012ca5a0df /arch/um/drivers/line.h | |
parent | cfe6b7c79daa0efa27f474f1fe2a88fd7af5cc47 (diff) | |
download | op-kernel-dev-04292b2cf8f02a33cfc1054c0c51aa8c77731813.zip op-kernel-dev-04292b2cf8f02a33cfc1054c0c51aa8c77731813.tar.gz |
um: get rid of lines_init()
move config-independent parts of initialization into
register_lines(), call setup_one_line() after it instead
of abusing ->init_str.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/drivers/line.h')
-rw-r--r-- | arch/um/drivers/line.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/line.h b/arch/um/drivers/line.h index e3f8606..9599199 100644 --- a/arch/um/drivers/line.h +++ b/arch/um/drivers/line.h @@ -82,7 +82,8 @@ extern void line_close_chan(struct line *line); extern int register_lines(struct line_driver *line_driver, const struct tty_operations *driver, struct line *lines, int nlines); -extern void lines_init(struct line *lines, int nlines, struct chan_opts *opts); +extern int setup_one_line(struct line *lines, int n, char *init, + const struct chan_opts *opts, char **error_out); extern void close_lines(struct line *lines, int nlines); extern int line_config(struct line *lines, unsigned int sizeof_lines, |