From patchwork Sat Oct 20 07:12:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen Martin X-Patchwork-Id: 192907 X-Patchwork-Delegate: twarren@nvidia.com 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 27A5F2C00A3 for ; Sat, 20 Oct 2012 18:12:19 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3C9B54A514; Sat, 20 Oct 2012 09:12:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 dAz6+waJHcQt; Sat, 20 Oct 2012 09:12:16 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8D86C4A52A; Sat, 20 Oct 2012 09:12:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7BACA4A52A for ; Sat, 20 Oct 2012 09:12:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 6SezXrpTGCD7 for ; Sat, 20 Oct 2012 09:12:13 +0200 (CEST) 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 hqemgate03.nvidia.com (hqemgate03.nvidia.com [216.228.121.140]) by theia.denx.de (Postfix) with ESMTPS id 6CC3A4A514 for ; Sat, 20 Oct 2012 09:12:10 +0200 (CEST) Received: from hqnvupgp06.nvidia.com (Not Verified[216.228.121.13]) by hqemgate03.nvidia.com id ; Sat, 20 Oct 2012 00:14:29 -0700 Received: from hqemhub01.nvidia.com ([172.17.108.22]) by hqnvupgp06.nvidia.com (PGP Universal service); Sat, 20 Oct 2012 00:12:08 -0700 X-PGP-Universal: processed; by hqnvupgp06.nvidia.com on Sat, 20 Oct 2012 00:12:08 -0700 Received: from badger.nvidia.com (172.20.144.16) by hqemhub01.nvidia.com (172.20.150.30) with Microsoft SMTP Server id 8.3.279.1; Sat, 20 Oct 2012 00:12:08 -0700 From: Allen Martin To: , , Date: Sat, 20 Oct 2012 00:12:01 -0700 Message-ID: <1350717121-4657-1-git-send-email-amartin@nvidia.com> X-Mailer: git-send-email 1.7.10.4 X-NVConfidentiality: public MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] HACK: fix return value of serial_assign to get printfs working again X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This reverts a recent change to serial_assign() that broke printfs on tegra. I don't think this is the real fix, but I'm just putting this out for others who want to test tegra patches for the other regressions. Signed-off-by: Allen Martin --- drivers/serial/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index e0886d5..f1c55bf 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -268,7 +268,7 @@ int serial_assign(const char *name) return 0; } - return -EINVAL; + return 1; } /**