]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
usb: xhci-mvebu: use xhci_deregister() for .remove callback
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 14 Oct 2016 01:30:01 +0000 (10:30 +0900)
committerMarek Vasut <marex@denx.de>
Thu, 27 Oct 2016 06:02:39 +0000 (08:02 +0200)
No need to use a wrapper that is equivalent to xhci_deregister().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/usb/host/xhci-mvebu.c

index 23c241a7c79e3dd5f4e58b0478a78a0a2b02c9b0..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);
@@ -89,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),