From mboxrd@z Thu Jan 1 00:00:00 1970 From: s.hauer@pengutronix.de (Sascha Hauer) Date: Mon, 21 Jun 2010 08:51:58 +0200 Subject: [PATCH 2/2] mach-cpuimx27: fix USB_ULPI build warnings In-Reply-To: <1276870795-21594-2-git-send-email-eric@eukrea.com> References: <1276870795-21594-1-git-send-email-eric@eukrea.com> <1276870795-21594-2-git-send-email-eric@eukrea.com> Message-ID: <20100621065158.GD12115@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Jun 18, 2010 at 04:19:55PM +0200, Eric B?nard wrote: > when CONFIG_USB_ULPI is not defined we actually get : > warning: 'otg_pdata' defined but not used > warning: 'usbh2_pdata' defined but not used Ok, applied. > > Signed-off-by: Eric B?nard > Cc: linux-arm-kernel at lists.infradead.org > Cc: s.hauer at pengutronix.de > --- > arch/arm/mach-mx2/mach-cpuimx27.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-mx2/mach-cpuimx27.c b/arch/arm/mach-mx2/mach-cpuimx27.c > index dc2dca3..5529178 100644 > --- a/arch/arm/mach-mx2/mach-cpuimx27.c > +++ b/arch/arm/mach-mx2/mach-cpuimx27.c > @@ -219,6 +219,7 @@ static struct platform_device serial_device = { > }; > #endif > > +#if defined(CONFIG_USB_ULPI) > static struct mxc_usbh_platform_data otg_pdata = { > .portsc = MXC_EHCI_MODE_ULPI, > .flags = MXC_EHCI_INTERFACE_DIFF_UNI, > @@ -228,6 +229,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = { > .portsc = MXC_EHCI_MODE_ULPI, > .flags = MXC_EHCI_INTERFACE_DIFF_UNI, > }; > +#endif > > static struct fsl_usb2_platform_data otg_device_pdata = { > .operating_mode = FSL_USB2_DR_DEVICE, > -- > 1.6.3.3 > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |