Skip to content

Commit bc80fbe

Browse files
peterhurleygregkh
authored andcommitted
tty: Remove ancient hardpps()
hardpps() functionality is provided through the N_PPS line discipline now. The new function signature was added in commit 025b40a (2011-01-12). There was no previous macro or function hardpps(), at least since before the initial commit of v2.6.12 in 2005. It's unlikely this code has been compiled since. Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: George Spelvin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4238157 commit bc80fbe

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/tty/amiserial.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,6 @@ static void check_modem_status(struct serial_state *info)
393393
icount->dsr++;
394394
if (dstatus & SER_DCD) {
395395
icount->dcd++;
396-
#ifdef CONFIG_HARD_PPS
397-
if ((port->flags & ASYNC_HARDPPS_CD) &&
398-
!(status & SER_DCD))
399-
hardpps();
400-
#endif
401396
}
402397
if (dstatus & SER_CTS)
403398
icount->cts++;

drivers/tty/serial/serial_core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,10 +2734,6 @@ void uart_handle_dcd_change(struct uart_port *uport, unsigned int status)
27342734
}
27352735

27362736
uport->icount.dcd++;
2737-
#ifdef CONFIG_HARD_PPS
2738-
if ((uport->flags & UPF_HARDPPS_CD) && status)
2739-
hardpps();
2740-
#endif
27412737

27422738
if (port->flags & ASYNC_CHECK_CD) {
27432739
if (status)

0 commit comments

Comments
 (0)