From: Felipe Balbi Date: Wed, 29 Oct 2008 13:10:36 +0000 (+0200) Subject: usb: musb: tusb6010: kill compile warning X-Git-Tag: v2.6.28-rc5~16^2~20 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=14a2c96f72e0939cb817b6624346b0161b5603db;p=linux-2.6-omap-h63xx.git usb: musb: tusb6010: kill compile warning Add an errno to failing case. Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- 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);