]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/host/ehci-marvell.c
usb: replace ehci_*_remove() with usb_deregister()
[karo-tx-uboot.git] / drivers / usb / host / ehci-marvell.c
index 5b0f46aaef878a4e8e80effcf26762d1b4a6d3ab..253fcb3c9621fb8aa129ecb0f7d1c0dbc9e50023 100644 (file)
@@ -94,17 +94,6 @@ static int ehci_mvebu_probe(struct udevice *dev)
        return ehci_register(dev, hccr, hcor, NULL, 0, USB_INIT_HOST);
 }
 
-static int ehci_mvebu_remove(struct udevice *dev)
-{
-       int ret;
-
-       ret = ehci_deregister(dev);
-       if (ret)
-               return ret;
-
-       return 0;
-}
-
 static const struct udevice_id ehci_usb_ids[] = {
        { .compatible = "marvell,orion-ehci", },
        { }
@@ -115,7 +104,7 @@ U_BOOT_DRIVER(ehci_mvebu) = {
        .id     = UCLASS_USB,
        .of_match = ehci_usb_ids,
        .probe = ehci_mvebu_probe,
-       .remove = ehci_mvebu_remove,
+       .remove = ehci_deregister,
        .ops    = &ehci_usb_ops,
        .platdata_auto_alloc_size = sizeof(struct usb_platdata),
        .priv_auto_alloc_size = sizeof(struct ehci_mvebu_priv),