Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6d28523 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: musb: am35x: fix compile error when building am35x



am35x_musb_set_mode() was redefined. Fix it.

Reported-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 1f158488
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -396,7 +396,7 @@ static struct omap_musb_board_data musb_board_data = {
	.power                  = 500,
	.set_phy_power		= am35x_musb_phy_power,
	.clear_irq		= am35x_musb_clear_irq,
	.set_mode		= am35x_musb_set_mode,
	.set_mode		= am35x_set_mode,
	.reset			= am35x_musb_reset,
};

+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ void am35x_musb_clear_irq(void)
	regval = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR);
}

void am35x_musb_set_mode(u8 musb_mode)
void am35x_set_mode(u8 musb_mode)
{
	u32 devconf2 = omap_ctrl_readl(AM35XX_CONTROL_DEVCONF2);

+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ extern int omap4430_phy_suspend(struct device *dev, int suspend);
extern void am35x_musb_reset(void);
extern void am35x_musb_phy_power(u8 on);
extern void am35x_musb_clear_irq(void);
extern void am35x_musb_set_mode(u8 musb_mode);
extern void am35x_set_mode(u8 musb_mode);

/*
 * FIXME correct answer depends on hmc_mode,