count = tty_insert_flip_string_fixed_flag(port, receive_data->data,
tty_flags, recv_data_size);
if (count != recv_data_size) {
- dev_err(&connection->dev,
+ dev_err(&connection->bundle->dev,
"UART: RX 0x%08x bytes only wrote 0x%08x\n",
recv_data_size, count);
}
gb_tty->ctrlin = serial_state->control;
break;
default:
- dev_err(&connection->dev,
+ dev_err(&connection->bundle->dev,
"unsupported unsolicited request: %02x\n", type);
ret = -EINVAL;
}
struct gb_uart_set_break_request request;
if ((state != 0) && (state != 1)) {
- dev_err(&gb_tty->connection->dev,
+ dev_err(&gb_tty->connection->bundle->dev,
"invalid break state of %d\n", state);
return -EINVAL;
}
minor = alloc_minor(gb_tty);
if (minor < 0) {
if (minor == -ENOSPC) {
- dev_err(&connection->dev,
+ dev_err(&connection->bundle->dev,
"no more free minor numbers\n");
retval = -ENODEV;
goto error_minor;
send_line_coding(gb_tty);
tty_dev = tty_port_register_device(&gb_tty->port, gb_tty_driver, minor,
- &connection->dev);
+ &connection->bundle->dev);
if (IS_ERR(tty_dev)) {
retval = PTR_ERR(tty_dev);
goto error;