From patchwork Wed Aug 19 06:35:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 508584 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 DFA9F1404A8 for ; Wed, 19 Aug 2015 16:36:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 770AA4B914; Wed, 19 Aug 2015 08:36:20 +0200 (CEST) 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 IL4S21_ZxVB9; Wed, 19 Aug 2015 08:36:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AD3E54B91D; Wed, 19 Aug 2015 08:36:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E9A894B8F1 for ; Wed, 19 Aug 2015 08:35:55 +0200 (CEST) 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 pzdZfrnHUMjl for ; Wed, 19 Aug 2015 08:35:55 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 6D44C4B8ED for ; Wed, 19 Aug 2015 08:35:55 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t7J6ZmT2021009; Wed, 19 Aug 2015 01:35:48 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t7J6Zmr8018850; Wed, 19 Aug 2015 01:35:48 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Wed, 19 Aug 2015 01:35:48 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t7J6ZYoo009619; Wed, 19 Aug 2015 01:35:46 -0500 From: Kishon Vijay Abraham I To: , , , , Date: Wed, 19 Aug 2015 12:05:32 +0530 Message-ID: <1439966133-4225-5-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1439966133-4225-1-git-send-email-kishon@ti.com> References: <1439966133-4225-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 Cc: kishon@ti.com Subject: [U-Boot] [PATCH v2 4/5] board: ti: remove duplicate initialization of vbus_id_status 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" vbus_id_status is initialized in board_usb_init. So remove it while creating dwc3_device objects. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Tom Rini --- board/ti/am43xx/board.c | 2 -- board/ti/dra7xx/evm.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index d7b9e5a..1454976 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -685,7 +685,6 @@ static struct dwc3_device usb_otg_ss1 = { static struct dwc3_omap_device usb_otg_ss1_glue = { .base = (void *)USB_OTG_SS1_GLUE_BASE, .utmi_mode = DWC3_OMAP_UTMI_MODE_SW, - .vbus_id_status = OMAP_DWC3_VBUS_VALID, .index = 0, }; @@ -704,7 +703,6 @@ static struct dwc3_device usb_otg_ss2 = { static struct dwc3_omap_device usb_otg_ss2_glue = { .base = (void *)USB_OTG_SS2_GLUE_BASE, .utmi_mode = DWC3_OMAP_UTMI_MODE_SW, - .vbus_id_status = OMAP_DWC3_VBUS_VALID, .index = 1, }; diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index 94a1a8c..4849694 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -114,7 +114,6 @@ static struct dwc3_device usb_otg_ss1 = { static struct dwc3_omap_device usb_otg_ss1_glue = { .base = (void *)DRA7_USB_OTG_SS1_GLUE_BASE, .utmi_mode = DWC3_OMAP_UTMI_MODE_SW, - .vbus_id_status = OMAP_DWC3_VBUS_VALID, .index = 0, }; @@ -135,7 +134,6 @@ static struct dwc3_device usb_otg_ss2 = { static struct dwc3_omap_device usb_otg_ss2_glue = { .base = (void *)DRA7_USB_OTG_SS2_GLUE_BASE, .utmi_mode = DWC3_OMAP_UTMI_MODE_SW, - .vbus_id_status = OMAP_DWC3_VBUS_VALID, .index = 1, };