diff options
| author | Vardan Mikayelyan <[email protected]> | 2018-01-19 14:46:04 +0400 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2018-03-13 10:47:44 +0200 |
| commit | fb50aacdcf124d98ed93d4cc87867aa60011b52d (patch) | |
| tree | 298254fa8caff0abbe8431298ef9e674760c6cc3 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | a127cccd869b4418dcfaefe96bfa672287b32719 (diff) | |
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 <[email protected]>
Signed-off-by: Vardan Mikayelyan <[email protected]>
Signed-off-by: John Youn <[email protected]>
Signed-off-by: Grigor Tovmasyan <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions