diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-03-23 17:36:25 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-23 16:53:30 +0100 |
| commit | 971d080212be4ce2b91047d25a657f46d3e39635 (patch) | |
| tree | 785f730f1b9c23fa5283b22cce50e0d594b2fea0 /tools/perf/scripts/python/bin | |
| parent | usb: gadget: pch_udc: Revert d3cb25a12138 completely (diff) | |
| download | linux-971d080212be4ce2b91047d25a657f46d3e39635.tar.gz linux-971d080212be4ce2b91047d25a657f46d3e39635.zip | |
usb: gadget: pch_udc: Initialize device pointer before use
During conversion to use GPIO descriptors the device pointer,
which is applied to devm_gpiod_get(), is not yet initialized.
Move initialization in the ->probe() in order to have it set before use.
Fixes: e20849a8c883 ("usb: gadget: pch_udc: Convert to use GPIO descriptors")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210323153626.54908-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
