Skip to content

Commit

Permalink
usb: musb: tusb6010: kill compile warning
Browse files Browse the repository at this point in the history
Add an errno to failing case.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Nov 13, 2008
1 parent f82a689 commit 14a2c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/musb/tusb6010.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 14a2c96

Please sign in to comment.