[U-Boot] [PATCH] omap3: fix compile warning

Sanjeev Premi premi at ti.com
Thu Dec 24 09:50:41 CET 2009


This patch fixes this warning during compile:

omap3.c: In function 'musb_platform_init':
omap3.c:126: warning: label 'end' defined but not used

Problem reported by: Dirk Behme[dirk.behme at googlemail.com]

Signed-off-by: Sanjeev Premi <premi at ti.com>
---
 drivers/usb/musb/omap3.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/musb/omap3.c b/drivers/usb/musb/omap3.c
index ea98c3c..3bfd0a0 100644
--- a/drivers/usb/musb/omap3.c
+++ b/drivers/usb/musb/omap3.c
@@ -123,7 +123,10 @@ int musb_platform_init(void)
 	}
 
 	ret = platform_needs_initialization;
+
+#ifdef CONFIG_TWL4030_USB
 end:
+#endif
 	return ret;
 
 }
-- 
1.6.2.2



More information about the U-Boot mailing list