The UDC pointer is set on successful probe and will never be NULL when
the driver is later unbound so drop the misleading sanity check (and
confused error message).
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260702141536.90887-5-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
DECLARE_COMPLETION_ONSTACK(done);
- if (!udc_controller) {
- dev_err(&pdev->dev,
- "Driver still in use but removing anyhow\n");
- return;
- }
-
udc_controller->done = &done;
usb_del_gadget_udc(&udc_controller->gadget);