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) <jirislaby@kernel.org> Cc: David S. Miller <davem@davemloft.net> Cc: sparclinux@vger.kernel.org Link: https://lore.kernel.org/r/20250317070046.24386-25-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 53edbd4 commit d0e8e5b

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

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)