Skip to content

Commit

Permalink
ARM: OMAP1: usb: fix sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Walmsley authored and Tony Lindgren committed Oct 26, 2012
1 parent a021279 commit eba36d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-omap1/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static inline void otg_device_init(struct omap_usb_config *pdata)

#endif

u32 __init omap1_usb0_init(unsigned nwires, unsigned is_device)
static u32 __init omap1_usb0_init(unsigned nwires, unsigned is_device)
{
u32 syscon1 = 0;

Expand Down Expand Up @@ -409,7 +409,7 @@ u32 __init omap1_usb0_init(unsigned nwires, unsigned is_device)
return syscon1 << 16;
}

u32 __init omap1_usb1_init(unsigned nwires)
static u32 __init omap1_usb1_init(unsigned nwires)
{
u32 syscon1 = 0;

Expand Down Expand Up @@ -475,7 +475,7 @@ u32 __init omap1_usb1_init(unsigned nwires)
return syscon1 << 20;
}

u32 __init omap1_usb2_init(unsigned nwires, unsigned alt_pingroup)
static u32 __init omap1_usb2_init(unsigned nwires, unsigned alt_pingroup)
{
u32 syscon1 = 0;

Expand Down

0 comments on commit eba36d7

Please sign in to comment.