linux/drivers/usb/musb
Arnd Bergmann 984f3be591 usb: musb: da8xx: fix error handling message in probe
We print an error message when platform_device_register_full()
fails, but the initialization of the argument has been removed,
as shown in this warning:

drivers/usb/musb/da8xx.c: In function 'da8xx_probe':
drivers/usb/musb/da8xx.c:521:3: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This modifies the function to assign the return code before
checking it, and does uses the same method in the check for
usb_phy_generic_register() as well.

Fixes: 947c49afe4 ("usb: musb: da8xx: Remove mach code")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-23 12:26:07 +02:00
..
am35x.c usb: musb: am35x: fix error return code in am35x_probe() 2016-09-13 17:20:02 +02:00
blackfin.c
blackfin.h
cppi_dma.c usb: musb: cleanup cppi_dma header 2016-07-17 08:23:57 +09:00
cppi_dma.h usb: musb: cppi41: move struct cppi41_dma_channel to header 2016-07-17 08:23:57 +09:00
da8xx.c usb: musb: da8xx: fix error handling message in probe 2016-09-23 12:26:07 +02:00
davinci.c
davinci.h
jz4740.c
Kconfig Merge 4.8-rc7 into usb-next 2016-09-19 09:12:41 +02:00
Makefile usb: musb: add tracepoints support for debugging 2016-07-17 08:23:57 +09:00
musb_am335x.c
musb_core.c usb: musb: Fix session based PM for first invalid VBUS 2016-09-23 12:26:07 +02:00
musb_core.h usb: musb: Fix session based PM for first invalid VBUS 2016-09-23 12:26:07 +02:00
musb_cppi41.c usb: musb: cppi41: add dma channel tracepoints 2016-07-17 08:23:57 +09:00
musb_debug.h usb: musb: add tracepoints support for debugging 2016-07-17 08:23:57 +09:00
musb_debugfs.c
musb_dma.h
musb_dsps.c usb: musb: Add PM runtime support for MUSB DSPS glue layer 2016-09-13 17:20:02 +02:00
musb_gadget.c usb: musb: Fix PM runtime for disconnect after unconfigure 2016-09-23 12:26:07 +02:00
musb_gadget.h
musb_gadget_ep0.c usb: musb: switch dev_dbg to tracepoints 2016-07-17 08:23:57 +09:00
musb_host.c usb: musb: host: add urb tracepoints 2016-07-17 08:23:57 +09:00
musb_host.h
musb_io.h
musb_regs.h
musb_trace.c usb: musb: add tracepoints support for debugging 2016-07-17 08:23:57 +09:00
musb_trace.h usb: musb: cppi41: add dma channel tracepoints 2016-07-17 08:23:57 +09:00
musb_virthub.c musb: Export musb_root_disconnect for use in modules 2016-09-22 12:00:21 +02:00
musbhsdma.c usb: musb: switch dev_dbg to tracepoints 2016-07-17 08:23:57 +09:00
musbhsdma.h
omap2430.c usb: musb: Simplify PM runtime for 2430 glue layer 2016-09-13 17:20:02 +02:00
omap2430.h
sunxi.c musb: sunxi: Add support for platform_set_mode 2016-09-13 17:20:02 +02:00
tusb6010.c
tusb6010.h
tusb6010_omap.c
ux500.c
ux500_dma.c