From patchwork Wed Aug 5 14:18:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 39394 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n75EIpPx009987 for ; Wed, 5 Aug 2009 14:18:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934465AbZHEOSo (ORCPT ); Wed, 5 Aug 2009 10:18:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934466AbZHEOSo (ORCPT ); Wed, 5 Aug 2009 10:18:44 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:57890 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934465AbZHEOSn (ORCPT ); Wed, 5 Aug 2009 10:18:43 -0400 Received: from muru.com ([72.249.23.125] helo=[127.0.0.1]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1MYhKF-000D30-W7; Wed, 05 Aug 2009 14:18:44 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 72.249.23.125 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+3VBYNBOF1ShIcbPXmuQQD Subject: [PATCH 5/5] OMAP3: RX51: Define TWL4030 USB transceiver in board file To: linux-arm-kernel@lists.arm.linux.org.uk From: Tony Lindgren Cc: Felipe Balbi , linux-omap@vger.kernel.org, Roger Quadros Date: Wed, 05 Aug 2009 17:18:41 +0300 Message-ID: <20090805141841.1964.11641.stgit@localhost> In-Reply-To: <20090805141051.1964.74687.stgit@localhost> References: <20090805141051.1964.74687.stgit@localhost> User-Agent: StGit/0.14.3.347.g594a MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Roger Quadros Add OTG transceiver to RX51 platform data to prevent kernel NULL pointer dereference during MUSB initialisation. Signed-off-by: Roger Quadros Signed-off-by: Felipe Balbi Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-rx51-peripherals.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 9a0bf67..56d931a 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -278,6 +278,10 @@ static struct twl4030_gpio_platform_data rx51_gpio_data = { .setup = rx51_twlgpio_setup, }; +static struct twl4030_usb_data rx51_usb_data = { + .usb_mode = T2_USB_MODE_ULPI, +}; + static struct twl4030_platform_data rx51_twldata = { .irq_base = TWL4030_IRQ_BASE, .irq_end = TWL4030_IRQ_END, @@ -286,6 +290,7 @@ static struct twl4030_platform_data rx51_twldata = { .gpio = &rx51_gpio_data, .keypad = &rx51_kp_data, .madc = &rx51_madc_data, + .usb = &rx51_usb_data, .vaux1 = &rx51_vaux1, .vaux2 = &rx51_vaux2,