Re: [PATCH v2 6/7] usb: gadget: pch_udc: Initialize device pointer before use

From
Linus Walleij <hidden>
Date
2021-03-25 09:24:13
Also in
lkml
Reply to
Andy Shevchenko, 2021-03-23
On Tue, Mar 23, 2021 at 4:36 PM Andy Shevchenko
[off-list ref] wrote:
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>
Ooops sorry.
Reviewed-by: Linus Walleij <redacted>

Yours,
Linus Walleij
Thread (10 messages) 10 messages, 2 authors, last reply 2021-03-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help