linux/drivers/usb/dwc2
Vardan Mikayelyan fb50aacdcf usb: dwc2: pci: Move devm_kzalloc() before platform_device_add()
After platform_device_add(), if we error out, we must do
platform_device_unregister(), which also does the put. So lets move
devm_kzalloc() to simplify error handling and avoid calling of
platform_device_unregister().

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Vardan Mikayelyan <mvardan@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2018-03-13 10:47:44 +02:00
..
core_intr.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
core.c usb: dwc2: Change TxFIFO and RxFIFO flushing flow 2018-03-13 10:47:43 +02:00
core.h usb: dwc2: Delete unused functionality 2018-03-13 10:47:42 +02:00
debug.h USB: dwc2: Remove redundant license text 2017-11-07 15:45:01 +01:00
debugfs.c USB: dwc2: Re-use DEFINE_SHOW_ATTRIBUTE() macro 2018-03-08 15:12:00 +02:00
gadget.c usb: dwc2: Rename bit set/clear function names 2018-03-13 10:47:42 +02:00
hcd_ddma.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
hcd_intr.c usb: dwc2: host: Don't retry NAKed transactions right away 2017-12-13 11:27:53 +02:00
hcd_queue.c usb: dwc2: host: Don't retry NAKed transactions right away 2017-12-13 11:27:53 +02:00
hcd.c usb: dwc2: host: Fix transaction errors in host mode 2018-03-13 10:47:43 +02:00
hcd.h usb: dwc2: Delete unused functionality 2018-03-13 10:47:42 +02:00
hw.h usb: dwc2: Remove version check in GSNPSID 2018-03-13 10:47:39 +02:00
Kconfig usb: add CONFIG_USB_PCI for system have both PCI HW and non-PCI based USB HW 2017-03-17 13:16:56 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
params.c usb: dwc2: Set AHB burst size to INCR 2018-03-13 10:47:40 +02:00
pci.c usb: dwc2: pci: Move devm_kzalloc() before platform_device_add() 2018-03-13 10:47:44 +02:00
platform.c usb: dwc2: eliminate irq parameter from dwc2_gadget_init 2018-03-08 15:12:01 +02:00