diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-10-26 17:28:58 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-10-26 17:30:40 -0400 |
commit | eba36d77a80ba2b0bc435fafc8a1ea4f571da4f6 (patch) | |
tree | 832108ac4145967a864e321544a59a6ab6f940c0 /arch/arm/mach-omap1 | |
parent | a0212796b58061a9716178d261f318925c246643 (diff) |
ARM: OMAP1: usb: fix sparse warnings
Resolve the following sparse warnings:
arch/arm/mach-omap1/usb.c:304:12: warning: symbol 'omap1_usb0_init' was not declared. Should it be static?
arch/arm/mach-omap1/usb.c:412:12: warning: symbol 'omap1_usb1_init' was not declared. Should it be static?
arch/arm/mach-omap1/usb.c:478:12: warning: symbol 'omap1_usb2_init' was not declared. Should it be static?
by declaring those functions as static.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Felipe Balbi <balbi@ti.com>
[tony@atomide.com: this was missed with plat/usb.h removal]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap1/usb.c b/arch/arm/mach-omap1/usb.c index 84267edd9421..104fed366b8f 100644 --- a/arch/arm/mach-omap1/usb.c +++ b/arch/arm/mach-omap1/usb.c | |||
@@ -301,7 +301,7 @@ static inline void otg_device_init(struct omap_usb_config *pdata) | |||
301 | 301 | ||
302 | #endif | 302 | #endif |
303 | 303 | ||
304 | u32 __init omap1_usb0_init(unsigned nwires, unsigned is_device) | 304 | static u32 __init omap1_usb0_init(unsigned nwires, unsigned is_device) |
305 | { | 305 | { |
306 | u32 syscon1 = 0; | 306 | u32 syscon1 = 0; |
307 | 307 | ||
@@ -409,7 +409,7 @@ u32 __init omap1_usb0_init(unsigned nwires, unsigned is_device) | |||
409 | return syscon1 << 16; | 409 | return syscon1 << 16; |
410 | } | 410 | } |
411 | 411 | ||
412 | u32 __init omap1_usb1_init(unsigned nwires) | 412 | static u32 __init omap1_usb1_init(unsigned nwires) |
413 | { | 413 | { |
414 | u32 syscon1 = 0; | 414 | u32 syscon1 = 0; |
415 | 415 | ||
@@ -475,7 +475,7 @@ bad: | |||
475 | return syscon1 << 20; | 475 | return syscon1 << 20; |
476 | } | 476 | } |
477 | 477 | ||
478 | u32 __init omap1_usb2_init(unsigned nwires, unsigned alt_pingroup) | 478 | static u32 __init omap1_usb2_init(unsigned nwires, unsigned alt_pingroup) |
479 | { | 479 | { |
480 | u32 syscon1 = 0; | 480 | u32 syscon1 = 0; |
481 | 481 | ||