From patchwork Tue Jun 13 20:25:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 9784599 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3A1D06038E for ; Tue, 13 Jun 2017 20:25:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CAF228724 for ; Tue, 13 Jun 2017 20:25:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21CF928584; Tue, 13 Jun 2017 20:25:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC6F028724 for ; Tue, 13 Jun 2017 20:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=wIs2p7rVFUyLqWvzGFG/i8iNSEiUMojSxIWIDjLD8e4=; b=MVw ID1MYqP+sGPLQraL6eAVlTIQy13wWCZZ1sC8Q9IbCFYklrc4kw5DYZi7irQ+gptbU2rCW0IGogTBQ C3YHHiQkrrsS8Z8L6VyjlSbiOmwNA2rbUZAkURyAP/OMznm28rMcqj34McReyEIpAaeZjyyYZa5LM Nd751ruAftysi0Dg3jVljT1IWK6UedLqZxu1GLIZgaSiXfM9zr2KSrlmu/6pMia5VxRw/Ud6qLO/z SPvRdunuEG7+BVz4Wr/kDSNupfowmaiUvC8nZC93it2hjVt7/tHxP57S7l+qA8qf6UnLF4iO8mCG3 vbtO7/CJqcMxPeA5jkxx+oHYPK6dWQA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dKsNl-0004nx-Py; Tue, 13 Jun 2017 20:25:45 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dKsNf-0004Nn-N2 for linux-arm-kernel@lists.infradead.org; Tue, 13 Jun 2017 20:25:43 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id DD8F121D9E; Tue, 13 Jun 2017 22:25:18 +0200 (CEST) Received: from localhost (unknown [88.191.26.124]) by mail.free-electrons.com (Postfix) with ESMTPSA id B735F21D8A; Tue, 13 Jun 2017 22:25:18 +0200 (CEST) From: Alexandre Belloni To: Richard Genoud , Greg Kroah-Hartman Subject: [PATCH] tty/serial: remove AVR32 specific access wrappers Date: Tue, 13 Jun 2017 22:25:17 +0200 Message-Id: <20170613202517.26558-1-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170613_132539_902108_EBBE841F X-CRM114-Status: UNSURE ( 6.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Alexandre Belloni , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Now that AVR32 is gone, the specific wrappers for that architecture are unnecessary and will not be compiled anymore. Signed-off-by: Alexandre Belloni Acked-by: Richard Genoud --- drivers/tty/serial/atmel_serial.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 937d67f22fba..8bfc566df2da 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -228,21 +228,6 @@ static inline void atmel_uart_writel(struct uart_port *port, u32 reg, u32 value) __raw_writel(value, port->membase + reg); } -#ifdef CONFIG_AVR32 - -/* AVR32 cannot handle 8 or 16bit I/O accesses but only 32bit I/O accesses */ -static inline u8 atmel_uart_read_char(struct uart_port *port) -{ - return __raw_readl(port->membase + ATMEL_US_RHR); -} - -static inline void atmel_uart_write_char(struct uart_port *port, u8 value) -{ - __raw_writel(value, port->membase + ATMEL_US_THR); -} - -#else - static inline u8 atmel_uart_read_char(struct uart_port *port) { return __raw_readb(port->membase + ATMEL_US_RHR); @@ -253,8 +238,6 @@ static inline void atmel_uart_write_char(struct uart_port *port, u8 value) __raw_writeb(value, port->membase + ATMEL_US_THR); } -#endif - #ifdef CONFIG_SERIAL_ATMEL_PDC static bool atmel_use_pdc_rx(struct uart_port *port) {