aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@nokia.com>2008-10-29 15:10:36 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2008-11-13 14:45:01 -0800
commit14a2c96f72e0939cb817b6624346b0161b5603db (patch)
tree3ee4e3d333fc17d7b7e664c8e2838922f0faeb0b /drivers/usb/musb
parentf82a689faeb328ba7c194782f42cc438519d508e (diff)
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>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/tusb6010.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c
index b73b036f3d7..ee8fca92a4a 100644
--- a/drivers/usb/musb/tusb6010.c
+++ b/drivers/usb/musb/tusb6010.c
@@ -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);