From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lucas Stach Date: Tue, 30 Oct 2012 10:22:46 +0100 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?= Message-ID: <1351588973-20699-1-git-send-email-dev@lynxeye.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@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 { -- 1.7.11.7