linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: daniel@caiaq.de (Daniel Mack)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/5] ARM: mx3: pxm043: fix compiler warning
Date: Tue, 25 May 2010 16:46:54 +0200	[thread overview]
Message-ID: <1274798817-21805-3-git-send-email-daniel@caiaq.de> (raw)
In-Reply-To: <1274798817-21805-1-git-send-email-daniel@caiaq.de>

For configs without CONFIG_USB_ULPI, the compiler complains about

  CC      arch/arm/mach-mx3/mach-pcm043.o
  arch/arm/mach-mx3/mach-pcm043.c:312: warning: 'otg_pdata' defined but not used
  arch/arm/mach-mx3/mach-pcm043.c:317: warning: 'usbh1_pdata' defined but not used

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-mx3/mach-pcm043.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx3/mach-pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c
index 78d9185..8071b72 100644
--- a/arch/arm/mach-mx3/mach-pcm043.c
+++ b/arch/arm/mach-mx3/mach-pcm043.c
@@ -309,6 +309,7 @@ static struct mxc_nand_platform_data pcm037_nand_board_info = {
 	.hw_ecc = 1,
 };
 
+#if defined(CONFIG_USB_ULPI)
 static struct mxc_usbh_platform_data otg_pdata = {
 	.portsc	= MXC_EHCI_MODE_UTMI,
 	.flags	= MXC_EHCI_INTERFACE_DIFF_UNI,
@@ -319,6 +320,7 @@ static struct mxc_usbh_platform_data usbh1_pdata = {
 	.flags	= MXC_EHCI_INTERFACE_SINGLE_UNI | MXC_EHCI_INTERNAL_PHY |
 		  MXC_EHCI_IPPUE_DOWN,
 };
+#endif
 
 static struct fsl_usb2_platform_data otg_device_pdata = {
 	.operating_mode = FSL_USB2_DR_DEVICE,
-- 
1.7.1

  parent reply	other threads:[~2010-05-25 14:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25 14:46 Assorted mini-fixes for MX31 Daniel Mack
2010-05-25 14:46 ` [PATCH 1/5] ARM: mx3: pcm037: remove unused variable Daniel Mack
2010-05-25 14:46 ` Daniel Mack [this message]
2010-05-25 14:46 ` [PATCH 3/5] ARM: mx3: mx31lilly: fix build error for !CONFIG_USB_ULPI Daniel Mack
2010-05-25 14:46 ` [PATCH 4/5] ARM: mx3: mx31lilly: pass mc13783 SPI IRQ pin Daniel Mack
2010-05-25 14:46 ` [PATCH 5/5] ARM: mx3: update mx3_defconfig Daniel Mack
2010-05-31  8:59 ` Assorted mini-fixes for MX31 Daniel Mack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1274798817-21805-3-git-send-email-daniel@caiaq.de \
    --to=daniel@caiaq.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).