usb: musb: tusb6010: kill compile warning
Add an errno to failing case. Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
f82a689fae
commit
14a2c96f72
@ -605,7 +605,7 @@ void musb_platform_set_mode(struct musb *musb, u8 musb_mode)
|
||||
|
||||
if (musb->board_mode != MUSB_OTG) {
|
||||
ERR("Changing mode currently only supported in OTG mode\n");
|
||||
return;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
otg_stat = musb_readl(tbase, TUSB_DEV_OTG_STAT);
|
||||
|
Loading…
Reference in New Issue
Block a user