Skip to content

Commit d0e8e5b

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
tty: sunsu: remove unused serial_icr_read()
It is commented and never used. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Cc: David S. Miller <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 53edbd4 commit d0e8e5b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/tty/serial/sunsu.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -159,20 +159,6 @@ static void serial_icr_write(struct uart_sunsu_port *up, int offset, int value)
159159
serial_out(up, UART_ICR, value);
160160
}
161161

162-
#if 0 /* Unused currently */
163-
static unsigned int serial_icr_read(struct uart_sunsu_port *up, int offset)
164-
{
165-
unsigned int value;
166-
167-
serial_icr_write(up, UART_ACR, up->acr | UART_ACR_ICRRD);
168-
serial_out(up, UART_SCR, offset);
169-
value = serial_in(up, UART_ICR);
170-
serial_icr_write(up, UART_ACR, up->acr);
171-
172-
return value;
173-
}
174-
#endif
175-
176162
#ifdef CONFIG_SERIAL_8250_RSA
177163
/*
178164
* Attempts to turn on the RSA FIFO. Returns zero on failure.

0 commit comments

Comments
 (0)