From cbb052c905367e20c11f3b107cfe07e36dd6c8cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eric=20B=C3=A9nard?= Date: Fri, 18 Jun 2010 16:19:55 +0200 Subject: [PATCH] mach-cpuimx27: fix USB_ULPI build warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit when CONFIG_USB_ULPI is not defined we actually get : warning: 'otg_pdata' defined but not used warning: 'usbh2_pdata' defined but not used Signed-off-by: Eric Bénard Cc: linux-arm-kernel@lists.infradead.org Cc: s.hauer@pengutronix.de Signed-off-by: Sascha Hauer --- arch/arm/mach-mx2/mach-cpuimx27.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-mx2/mach-cpuimx27.c b/arch/arm/mach-mx2/mach-cpuimx27.c index dc2dca3ff9b7..55291787d5d1 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, -- 2.34.1