mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 13:38:40 +00:00
usb: gadget: pch_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release methods, let's use it. Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
2fb29f215c
commit
ef98f7465f
@ -3191,13 +3191,13 @@ static int pch_udc_probe(struct pci_dev *pdev,
|
||||
if (retval)
|
||||
goto finished;
|
||||
|
||||
dev->gadget.dev.release = gadget_release;
|
||||
dev->gadget.name = KBUILD_MODNAME;
|
||||
dev->gadget.max_speed = USB_SPEED_HIGH;
|
||||
|
||||
/* Put the device in disconnected state till a driver is bound */
|
||||
pch_udc_set_disconnect(dev);
|
||||
retval = usb_add_gadget_udc(&pdev->dev, &dev->gadget);
|
||||
retval = usb_add_gadget_udc_release(&pdev->dev, &dev->gadget,
|
||||
gadget_release);
|
||||
if (retval)
|
||||
goto finished;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user