Skip to content

Commit b8e111a

Browse files
AxelLintmlind
authored andcommitted
ARM: OMAP: musb: Remove a redundant omap4430_phy_init call in usb_musb_init
Current code calls omap4430_phy_init() twice in usb_musb_init(). Calling omap4430_phy_init() once is enough. This patch removes the first omap4430_phy_init() call, which using an uninitialized pointer as parameter. This patch elimates below build warning: arch/arm/mach-omap2/usb-musb.c: In function 'usb_musb_init': arch/arm/mach-omap2/usb-musb.c:141: warning: 'dev' may be used uninitialized in this function Signed-off-by: Axel Lin <axel.lin@gmail.com> Bjarne Steinsbo <bsteinsbo@gmail.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent bfd46a5 commit b8e111a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/arm/mach-omap2/usb-musb.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ void __init usb_musb_init(struct omap_musb_board_data *musb_board_data)
137137
musb_plat.mode = board_data->mode;
138138
musb_plat.extvbus = board_data->extvbus;
139139

140-
if (cpu_is_omap44xx())
141-
omap4430_phy_init(dev);
142-
143140
if (cpu_is_omap3517() || cpu_is_omap3505()) {
144141
oh_name = "am35x_otg_hs";
145142
name = "musb-am35x";

0 commit comments

Comments
 (0)