summaryrefslogtreecommitdiffstats
path: root/drivers/usb
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
parentf82a689faeb328ba7c194782f42cc438519d508e (diff)
downloadop-kernel-dev-14a2c96f72e0939cb817b6624346b0161b5603db.zip
op-kernel-dev-14a2c96f72e0939cb817b6624346b0161b5603db.tar.gz
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')
-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 b73b036..ee8fca9 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);
OpenPOWER on IntegriCloud