From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933282Ab3BLOy7 (ORCPT ); Tue, 12 Feb 2013 09:54:59 -0500 Received: from science.horizon.com ([71.41.210.146]:57550 "HELO science.horizon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1761272Ab3BLOxk (ORCPT ); Tue, 12 Feb 2013 09:53:40 -0500 MBOX-Line: From b9889003af0a5f4cc4986a63b3a4f3191a6cb503 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Peter Hurley Date: Wed, 6 Feb 2013 10:55:16 -0500 Subject: [PATCH v2 7/9] tty: Remove ancient hardpps() To: linux-serial@vger.kernel.org, peter@hurleysoftware.com, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, giometti@linux.it, linux@horizon.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hardpps() functionality is provided through the N_PPS line discipline now. The new function signature was added in commit 025b40ab (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 Signed-off-by: George Spelvin --- drivers/tty/amiserial.c | 5 ----- drivers/tty/serial/serial_core.c | 4 ---- 2 files changed, 9 deletions(-) diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index 9d7d00c..ba2e09e 100644 --- a/drivers/tty/amiserial.c +++ b/drivers/tty/amiserial.c @@ -394,11 +394,6 @@ static void check_modem_status(struct serial_state *info) icount->dsr++; if (dstatus & SER_DCD) { icount->dcd++; -#ifdef CONFIG_HARD_PPS - if ((port->flags & ASYNC_HARDPPS_CD) && - !(status & SER_DCD)) - hardpps(); -#endif } if (dstatus & SER_CTS) icount->cts++; diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index b3a204b..02be179 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -2726,10 +2726,6 @@ void uart_handle_dcd_change(struct uart_port *uport, unsigned int status) } uport->icount.dcd++; -#ifdef CONFIG_HARD_PPS - if ((uport->flags & UPF_HARDPPS_CD) && status) - hardpps(); -#endif if (port->flags & ASYNC_CHECK_CD) { if (status) -- 1.8.1.3