usb: xhci-mvebu: use xhci_deregister() for .remove callback
[oweals/u-boot.git] / drivers / usb / host / xhci-mvebu.c
index e09e87ac91736bf9ba1459864a3aaa4004e4356b..46eb93783826be0539723aca44657f90a8e595fe 100644 (file)
@@ -56,11 +56,6 @@ static int xhci_usb_probe(struct udevice *dev)
        return xhci_register(dev, ctx->hcd, hcor);
 }
 
-static int xhci_usb_remove(struct udevice *dev)
-{
-       return xhci_deregister(dev);
-}
-
 static int xhci_usb_ofdata_to_platdata(struct udevice *dev)
 {
        struct mvebu_xhci_platdata *plat = dev_get_platdata(dev);
@@ -79,6 +74,7 @@ static int xhci_usb_ofdata_to_platdata(struct udevice *dev)
 
 static const struct udevice_id xhci_usb_ids[] = {
        { .compatible = "marvell,armada3700-xhci" },
+       { .compatible = "marvell,armada-8k-xhci" },
        { }
 };
 
@@ -88,7 +84,7 @@ U_BOOT_DRIVER(usb_xhci) = {
        .of_match = xhci_usb_ids,
        .ofdata_to_platdata = xhci_usb_ofdata_to_platdata,
        .probe = xhci_usb_probe,
-       .remove = xhci_usb_remove,
+       .remove = xhci_deregister,
        .ops    = &xhci_usb_ops,
        .platdata_auto_alloc_size = sizeof(struct mvebu_xhci_platdata),
        .priv_auto_alloc_size = sizeof(struct mvebu_xhci),