X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Fehci-zynq.c;h=1e3b8001f3af8c968a50cd99f4cd3d9a25e85620;hb=21342d4aed6c77a4aa7a5b2579b3c23e21aea31a;hp=76642cdad7de1b05b740cd3a505b62f7e4f803eb;hpb=dec49e862ef9e74654fad3595fda5be99d33711a;p=u-boot diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c index 76642cdad7..1e3b8001f3 100644 --- a/drivers/usb/host/ehci-zynq.c +++ b/drivers/usb/host/ehci-zynq.c @@ -73,17 +73,6 @@ static int ehci_zynq_probe(struct udevice *dev) return ehci_register(dev, hccr, hcor, NULL, 0, plat->init_type); } -static int ehci_zynq_remove(struct udevice *dev) -{ - int ret; - - ret = ehci_deregister(dev); - if (ret) - return ret; - - return 0; -} - static const struct udevice_id ehci_zynq_ids[] = { { .compatible = "xlnx,zynq-usb-2.20a" }, { } @@ -95,7 +84,7 @@ U_BOOT_DRIVER(ehci_zynq) = { .of_match = ehci_zynq_ids, .ofdata_to_platdata = ehci_zynq_ofdata_to_platdata, .probe = ehci_zynq_probe, - .remove = ehci_zynq_remove, + .remove = ehci_deregister, .ops = &ehci_usb_ops, .platdata_auto_alloc_size = sizeof(struct usb_platdata), .priv_auto_alloc_size = sizeof(struct zynq_ehci_priv),