From patchwork Tue Feb 11 17:45:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 3628701 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EE8CA9F392 for ; Tue, 11 Feb 2014 17:52:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1EF6C2020E for ; Tue, 11 Feb 2014 17:52:41 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 33C9B20203 for ; Tue, 11 Feb 2014 17:52:40 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDHUb-0003p5-3c; Tue, 11 Feb 2014 17:51:33 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDHPh-0004Gc-QE; Tue, 11 Feb 2014 17:46:29 +0000 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDHPU-0004DQ-53 for linux-arm-kernel@lists.infradead.org; Tue, 11 Feb 2014 17:46:17 +0000 Received: by mail-ea0-f175.google.com with SMTP id n15so1094321ead.20 for ; Tue, 11 Feb 2014 09:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=edP/rvy32poqYXGlvqjqsvTUuACyEbkvD18FfFU6vXU=; b=SNpfUOf/gfNI0c0YznUAs/7xVIm+7q5jvdNjyT/2B/twQfJ9WkOLb8JVeagvuZSLDk Vlor5qMRkSyUugNnktTmBr4peT1qfklECrERvg1yNCTYeVZVk1YIMKkKAeFV5Vm1AVsd NOMQqifWqhuGa3JzywB7gMox1ugxHeL2QKRGbwxA//XpxbLxbQc+HveavWiV4rC0zLvB lSOuu90VEtD3OoiJ6Vw433M3dVEhun0Er2NDD01AACnYIcbckZiYNlUKQtYX5S56X2wG 3OqJZ0kHWvKTALs+HauvuwlHJ1iUncJ6QDtJogbRiKHolQ0jSJNTq2ZQeL38d5zQt+px GSKA== X-Received: by 10.15.81.196 with SMTP id x44mr45132749eey.31.1392140754320; Tue, 11 Feb 2014 09:45:54 -0800 (PST) Received: from lnx-rg.pr (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPSA id x2sm69856818eeo.8.2014.02.11.09.45.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Feb 2014 09:45:53 -0800 (PST) From: Richard Genoud To: Greg Kroah-Hartman Subject: [PATCH v2 3/4] tty/serial: at91: remove unused open/close hooks Date: Tue, 11 Feb 2014 18:45:14 +0100 Message-Id: <1392140715-15295-4-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1392140715-15295-1-git-send-email-richard.genoud@gmail.com> References: <1392140715-15295-1-git-send-email-richard.genoud@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140211_124616_538685_57AB01DA X-CRM114-Status: GOOD ( 11.26 ) X-Spam-Score: -2.0 (--) Cc: Alexander Shiyan , Richard Genoud , Linus Walleij , Nicolas Ferre , linux-serial@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP commit 95e629b761ce36996d1befe2824d5346b5a220b9 removed the use of board specific hooks in serial_at91.h, so now, the open/close hook are just dead code. Signed-off-by: Richard Genoud --- drivers/tty/serial/atmel_serial.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index ed9621a21d67..a51b3a762948 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -112,9 +112,6 @@ static void atmel_stop_rx(struct uart_port *port); #define UART_PUT_TCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TCR) #define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR) -static int (*atmel_open_hook)(struct uart_port *); -static void (*atmel_close_hook)(struct uart_port *); - struct atmel_dma_buffer { unsigned char *buf; dma_addr_t dma_addr; @@ -1569,17 +1566,6 @@ static int atmel_startup(struct uart_port *port) if (retval < 0) atmel_set_ops(port); } - /* - * If there is a specific "open" function (to register - * control line interrupts) - */ - if (atmel_open_hook) { - retval = atmel_open_hook(port); - if (retval) { - free_irq(port->irq, port); - return retval; - } - } /* Save current CSR for comparison in atmel_tasklet_func() */ atmel_port->irq_status_prev = UART_GET_CSR(port); @@ -1678,13 +1664,6 @@ static void atmel_shutdown(struct uart_port *port) * Free the interrupt */ free_irq(port->irq, port); - - /* - * If there is a specific "close" function (to unregister - * control line interrupts) - */ - if (atmel_close_hook) - atmel_close_hook(port); } /*