aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/printk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index d3f9c0f788bf..0d232589a923 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1272,8 +1272,8 @@ late_initcall(disable_boot_consoles);
1272 */ 1272 */
1273void tty_write_message(struct tty_struct *tty, char *msg) 1273void tty_write_message(struct tty_struct *tty, char *msg)
1274{ 1274{
1275 if (tty && tty->driver->write) 1275 if (tty && tty->ops->write)
1276 tty->driver->write(tty, msg, strlen(msg)); 1276 tty->ops->write(tty, msg, strlen(msg));
1277 return; 1277 return;
1278} 1278}
1279 1279