From patchwork Tue Oct 30 09:22:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 195336 X-Patchwork-Delegate: marek.vasut@gmail.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 5432A2C00AE for ; Tue, 30 Oct 2012 20:23:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EEA9C4A12F; Tue, 30 Oct 2012 10:23:12 +0100 (CET) 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 9GHDqc1wgCwF; Tue, 30 Oct 2012 10:23:12 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5206E4A109; Tue, 30 Oct 2012 10:23:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 119924A120 for ; Tue, 30 Oct 2012 10:23:06 +0100 (CET) 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 afTvE-a5N0Gk for ; Tue, 30 Oct 2012 10:23: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 km20343-01.keymachine.de (ns.km20343-01.keymachine.de [84.19.182.79]) by theia.denx.de (Postfix) with ESMTP id D36DF4A11E for ; Tue, 30 Oct 2012 10:22:58 +0100 (CET) Received: from localhost.localdomain (g231091029.adsl.alicedsl.de [92.231.91.29]) by km20343-01.keymachine.de (Postfix) with ESMTPA id E0B6F7D416E; Tue, 30 Oct 2012 10:22:56 +0100 (CET) From: Lucas Stach To: Marek Vasut Date: Tue, 30 Oct 2012 10:22:46 +0100 Message-Id: <1351588973-20699-1-git-send-email-dev@lynxeye.de> X-Mailer: git-send-email 1.7.11.7 MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Tom Warren Subject: [U-Boot] =?utf-8?q?=5BPATCH_1/8=5D_tegra=3A_usb=3A_convert_USB=5F?= =?utf-8?q?PORTS=5FMAX_to_be_a_define?= 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 No point in having this as an enum. Also while at it set it to the real hardware maximum for both Tegra 2 and Tegra 3. If new Tegra hardware includes more USB controllers we can always bump the limit then. Signed-off-by: Lucas Stach --- arch/arm/cpu/armv7/tegra20/usb.c | 4 +--- 1 Datei geändert, 1 Zeile hinzugefügt(+), 3 Zeilen entfernt(-) diff --git a/arch/arm/cpu/armv7/tegra20/usb.c b/arch/arm/cpu/armv7/tegra20/usb.c index 1bccf2b..9fd1edc 100644 --- a/arch/arm/cpu/armv7/tegra20/usb.c +++ b/arch/arm/cpu/armv7/tegra20/usb.c @@ -43,9 +43,7 @@ #endif #endif -enum { - USB_PORTS_MAX = 4, /* Maximum ports we allow */ -}; +#define USB_PORTS_MAX 3 /* Maximum ports we allow */ /* Parameters we need for USB */ enum {