• Sebastian Andrzej Siewior's avatar
    usb/mv_udc_core: fix compile · cb424473
    Sebastian Andrzej Siewior authored
    |drivers/usb/gadget/mv_udc_core.c:2108: error: label `error' used but not defined
    
    This seems to be broken since the initial commit. I changed this to a
    simple return. The other user is the probe code which lets ->probe()
    fail on error here.
    
    |drivers/usb/gadget/mv_udc_core.c:2107: warning: passing argument 1 of `dev_err' from incompatible pointer type
    |drivers/usb/gadget/mv_udc_core.c:2118: warning: initialization from incompatible pointer type
    |drivers/usb/gadget/mv_udc_core.c:2119: warning: initialization from incompatible pointer type
    |drivers/usb/gadget/mv_udc_core.c:2130: error: initializer element is not constant
    |drivers/usb/gadget/mv_udc_core.c:2130: error: (near initialization for `udc_driver.driver.pm')
    
    Cc: Chao Xie <chao.xie@marvell.com>
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    cb424473
mv_udc_core.c 50.1 KB