dm: usb: emul: Drop usb_emul_reset()
With the root hub unbinding in usb_stop(), there is no need to do a Sandbox-specific reset operation. usb_emul_reset() is no longer used anywhere, drop it. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -294,14 +294,6 @@ int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void usb_emul_reset(struct udevice *dev)
|
||||
{
|
||||
struct usb_dev_platdata *plat = dev_get_parent_platdata(dev);
|
||||
|
||||
plat->devnum = 0;
|
||||
plat->configno = 0;
|
||||
}
|
||||
|
||||
UCLASS_DRIVER(usb_emul) = {
|
||||
.id = UCLASS_USB_EMUL,
|
||||
.name = "usb_emul",
|
||||
|
||||
Reference in New Issue
Block a user