summaryrefslogtreecommitdiff
path: root/arch/um/drivers/line.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-09-09 20:07:05 -0400
committerRichard Weinberger <richard@nod.at>2012-03-25 00:29:53 +0100
commit04292b2cf8f02a33cfc1054c0c51aa8c77731813 (patch)
treeff04fb51c5de7bd646d09d29d9d0ed012ca5a0df /arch/um/drivers/line.h
parentcfe6b7c79daa0efa27f474f1fe2a88fd7af5cc47 (diff)
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/line.h b/arch/um/drivers/line.h
index e3f86065e04..95991994a93 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,