hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/tty/serdev/serdev-ttyport.c
....@@ -239,7 +239,7 @@
239239 if (!tty->ops->tiocmget)
240240 return -ENOTSUPP;
241241
242
- return tty->driver->ops->tiocmget(tty);
242
+ return tty->ops->tiocmget(tty);
243243 }
244244
245245 static int ttyport_set_tiocm(struct serdev_controller *ctrl, unsigned int set, unsigned int clear)
....@@ -250,7 +250,7 @@
250250 if (!tty->ops->tiocmset)
251251 return -ENOTSUPP;
252252
253
- return tty->driver->ops->tiocmset(tty, set, clear);
253
+ return tty->ops->tiocmset(tty, set, clear);
254254 }
255255
256256 static const struct serdev_controller_ops ctrl_ops = {