Skip to contentSkip to conversation

staging: sb105x: b_pci_mp.c: fix for non-member access

PATCH In review Kumar Amit Mehta 2 participants 3 messages Feb 28, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sb105x: b_pci_mp.c: fix for non-member access

'struct tty_struct’ has no member named ‘low_latency’

---
 drivers/staging/sb105x/sb_pci_mp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/sb105x/sb_pci_mp.c +1 -2
index c9d6ee3..5687d6c 100644
@@ -898,7 +898,7 @@ static int mp_set_info(struct sb_uart_state *state, struct serial_struct *newinf
 	state->closing_wait    = closing_wait;
 	port->fifosize         = new_serial.xmit_fifo_size;
 	if (state->info->tty)
-		state->info->tty->low_latency +		state->info->tty->port->low_latency  			(port->flags & UPF_LOW_LATENCY) ? 1 : 0;
 
 check_and_exit:
@@ -1571,7 +1571,7 @@ static int mp_open(struct tty_struct *tty, struct file *filp)
 	mtpt  = (struct mp_port *)state->port;
 
 	tty->driver_data = state;
-	tty->low_latency = (state->port->flags & UPF_LOW_LATENCY) ? 1 : 0;
+	tty->port->low_latency = (state->port->flags & UPF_LOW_LATENCY) ? 1 : 0;
 	tty->alt_speed = 0;
 	state->info->tty = tty;
 
Signature · 1 line
1.8.5.3
maintainer
#1 lore raw
Quoted 1 line · Kumar Amit Mehta

'struct tty_struct’ has no member named ‘low_latency’

This driver is marked BROKEN, and can't even compile, how did you test this patch?

maintainer
#2 lore raw
Quoted 5 lines · Greg KH
Quoted 1 line · Kumar Amit Mehta

'struct tty_struct’ has no member named ‘low_latency’

This driver is marked BROKEN, and can't even compile, how did you test this patch?

Don't worry about it anymore, I've now deleted the driver entirely, as no one has cared about it in the past year that it has been disabled from the kernel build.

thanks,

greg k-h