projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] uml console channels: remove console_write wrappers
[firefly-linux-kernel-4.4.55.git]
/
arch
/
um
/
drivers
/
tty.c
diff --git
a/arch/um/drivers/tty.c
b/arch/um/drivers/tty.c
index 6fbb670ee2741a73d30dfa9eb20e1cad2d78f00a..94c9265a4f2ca54e034f4f79c11bf48ee061bdf2 100644
(file)
--- a/
arch/um/drivers/tty.c
+++ b/
arch/um/drivers/tty.c
@@
-60,13
+60,6
@@
static int tty_open(int input, int output, int primary, void *d,
return(fd);
}
return(fd);
}
-static int tty_console_write(int fd, const char *buf, int n, void *d)
-{
- struct tty_chan *data = d;
-
- return(generic_console_write(fd, buf, n, &data->tt));
-}
-
struct chan_ops tty_ops = {
.type = "tty",
.init = tty_chan_init,
struct chan_ops tty_ops = {
.type = "tty",
.init = tty_chan_init,
@@
-74,7
+67,7
@@
struct chan_ops tty_ops = {
.close = generic_close,
.read = generic_read,
.write = generic_write,
.close = generic_close,
.read = generic_read,
.write = generic_write,
- .console_write =
tty
_console_write,
+ .console_write =
generic
_console_write,
.window_size = generic_window_size,
.free = generic_free,
.winch = 0,
.window_size = generic_window_size,
.free = generic_free,
.winch = 0,