From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ajay Kumar Gupta Subject: [PATCH] OMAP3: musb: remove unneeded inits in musb_plat Date: Sat, 15 May 2010 10:29:41 +0530 Message-ID: <1273899581-26622-1-git-send-email-ajay.gupta@ti.com> Return-path: Received: from devils.ext.ti.com ([198.47.26.153]:44448 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169Ab0EOE7y (ORCPT ); Sat, 15 May 2010 00:59:54 -0400 Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org Cc: felipe.balbi@nokia.com, Ajay Kumar Gupta Removed unneeded 'power' and 'mode' field from musb_config as they are now getting updated by the values provided from board files at usb_musb_init(). Signed-off-by: Ajay Kumar Gupta --- Patch created against today's linux-omap/master. arch/arm/mach-omap2/usb-musb.c | 13 ------------- 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index 6d41fa7..63104dd 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c @@ -55,21 +55,8 @@ static struct musb_hdrc_config musb_config = { }; static struct musb_hdrc_platform_data musb_plat = { -#ifdef CONFIG_USB_MUSB_OTG - .mode = MUSB_OTG, -#elif defined(CONFIG_USB_MUSB_HDRC_HCD) - .mode = MUSB_HOST, -#elif defined(CONFIG_USB_GADGET_MUSB_HDRC) - .mode = MUSB_PERIPHERAL, -#endif /* .clock is set dynamically */ .config = &musb_config, - - /* REVISIT charge pump on TWL4030 can supply up to - * 100 mA ... but this value is board-specific, like - * "mode", and should be passed to usb_musb_init(). - */ - .power = 50, /* up to 100 mA */ }; static u64 musb_dmamask = DMA_BIT_MASK(32); -- 1.6.2.4