From patchwork Mon Dec 14 15:53:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 556549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 2A6B814031F for ; Tue, 15 Dec 2015 02:54:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b=1L3vPOi2; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD25D4BAA7; Mon, 14 Dec 2015 16:54:05 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XPlZ1erOI3es; Mon, 14 Dec 2015 16:54:05 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 268C94BA6F; Mon, 14 Dec 2015 16:54:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 629074BA6F for ; Mon, 14 Dec 2015 16:54:01 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K0dyUIvYcasx for ; Mon, 14 Dec 2015 16:54:01 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by theia.denx.de (Postfix) with ESMTPS id 2617D4BA68 for ; Mon, 14 Dec 2015 16:53:58 +0100 (CET) Received: by wmnn186 with SMTP id n186so126823100wmn.0 for ; Mon, 14 Dec 2015 07:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=OeVT4aEW/+HZ0COucnzC1ESQwT9EEqLGsl4+siiDsUs=; b=1L3vPOi2CAyCKhoptNd9fm2200R0vk3V+V0XK4CqxNlzFq8kEJDS/PJD60My9qKkRZ H8/RVFNP+4fY+Durghy9laa8au9jVsbT5hGGe/j+5793divrDpwdpF1JZrrEsxPONlfU ORY6j9AUJIic0GkV7RX1mWA3CvGt3xlLEKMrd+HzmVCBdMPtajSR5yKLy3sfL4uS+47w hVyQ/H5zUCVvePcPwLnb5olAk/fdAjYf2MJZZ9BvhJvYBb3R+D6snPp7jQo9clil8VI2 HBnT/8Oi+Q3Hd9ZclF4RHzxQVQ07rPbfiQMwx9hbApz4jL3e2nwfZwvibtgUiJsvDvXZ vmlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=OeVT4aEW/+HZ0COucnzC1ESQwT9EEqLGsl4+siiDsUs=; b=Pm9aUYj4JNdEeAdUE3f/z+2a2IuUcqLoqYrjoqTYzR8GutKJtBpDztOoFcLXnqNHbk 46WNF7j4sImY79wNsZdpLOCru+YYTsGhYL+OMbCfUicvgdLfiH6S9EunVPYVyj009f2T oCqSrW0bux8Juii6lWj/8lXTz1oAdxapPytf1bC6NL8tAqoX2TXar3EQ0n9GEBvoKF5I VQPDOE3pSlZPCDd2UFBDTbCH+fIIZ+NHdKh6652dZCv56gHqnCQpzu/UWiLvxbYhXs3m 4HfwX/XFs873IHgqHRrgVtMyewmmG8ZxVRBZGBYe92ojMCEA/LY0V67UbBIjwX6Za1zJ kVnw== X-Gm-Message-State: ALoCoQnjUeCGdsxuXbeB7tNydRUNI21FTxZv8CxJYq/OKU+p5A+k4Y/5gAxtMoPCMTTdGnH4B4I5SZnG2COPLF76RCxIXF6rXQ== X-Received: by 10.194.114.105 with SMTP id jf9mr37593282wjb.102.1450108399009; Mon, 14 Dec 2015 07:53:19 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id q7sm337869wjz.12.2015.12.14.07.53.18 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 14 Dec 2015 07:53:18 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Mon, 14 Dec 2015 16:53:13 +0100 Message-Id: <35b1d35839a0e87cf54aeafb9d9eaada349f306a.1450108392.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 Subject: [U-Boot] [PATCH] serial: Use static inline for _debug_uart_init() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Reported-by: Thomas Chou Signed-off-by: Michal Simek Reviewed-by: Simon Glass Reviewed-by: Bin Meng Reviewed-by: Thomas Chou --- drivers/serial/serial_xuartlite.c | 2 +- drivers/serial/serial_zynq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index fe87b515d902..0238a52380c7 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -122,7 +122,7 @@ U_BOOT_DRIVER(serial_uartlite) = { }; #ifdef CONFIG_DEBUG_UART_UARTLITE -void _debug_uart_init(void) +static inline void _debug_uart_init(void) { struct uartlite *regs = (struct uartlite *)CONFIG_DEBUG_UART_BASE; diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index b2b98dea1561..3430482f8d8b 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -192,7 +192,7 @@ U_BOOT_DRIVER(serial_zynq) = { }; #ifdef CONFIG_DEBUG_UART_ZYNQ -void _debug_uart_init(void) +static inline void _debug_uart_init(void) { struct uart_zynq *regs = (struct uart_zynq *)CONFIG_DEBUG_UART_BASE;