From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: [PATCH v2] OMAP3: RX51: Define TWL4030 USB transceiver in board file Date: Tue, 7 Jul 2009 14:37:11 +0300 Message-ID: <20090707113711.GS8461@nokia.com> References: <1246965322-14449-1-git-send-email-ext-roger.quadros@nokia.com> Reply-To: felipe.balbi@nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtp.nokia.com ([192.100.122.233]:29766 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754931AbZGGLiD (ORCPT ); Tue, 7 Jul 2009 07:38:03 -0400 Content-Disposition: inline In-Reply-To: <1246965322-14449-1-git-send-email-ext-roger.quadros@nokia.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Quadros Roger (EXT-Teleca/Helsinki)" Cc: "tony@atomide.com" , "Balbi Felipe (Nokia-D/Helsinki)" , "linux-omap@vger.kernel.org" On Tue, Jul 07, 2009 at 01:15:22PM +0200, Quadros Roger (EXT-Teleca/Helsinki) wrote: > 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 > --- > arch/arm/mach-omap2/board-rx51-peripherals.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > 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, > -- > 1.6.0.4 -- balbi