diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2008-10-29 15:10:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-11-13 14:45:01 -0800 |
commit | 14a2c96f72e0939cb817b6624346b0161b5603db (patch) | |
tree | 3ee4e3d333fc17d7b7e664c8e2838922f0faeb0b /drivers/usb/musb | |
parent | f82a689faeb328ba7c194782f42cc438519d508e (diff) | |
download | blackbird-op-linux-14a2c96f72e0939cb817b6624346b0161b5603db.tar.gz blackbird-op-linux-14a2c96f72e0939cb817b6624346b0161b5603db.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index b73b036f3d77..ee8fca92a4ac 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); |