aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-marvell.c
diff options
context:
space:
mode:
authorMasahiro Yamada2016-09-06 22:17:34 +0900
committerTom Rini2016-09-23 17:53:46 -0400
commit4052734273668e5f8fbe6ae8c85dd043514a38eb (patch)
tree47f0a4554dbb6695ae8795579b3689a5fdf0f873 /drivers/usb/host/ehci-marvell.c
parent720873bf428db0859ebbcf6b86ed510688b4e0b8 (diff)
usb: replace ehci_*_remove() with usb_deregister()
The remove callbacks of EHCI drivers are often just a wrapper of ehci_deregister. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/usb/host/ehci-marvell.c')
-rw-r--r--drivers/usb/host/ehci-marvell.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c
index 5b0f46aaef8..253fcb3c962 100644
--- a/drivers/usb/host/ehci-marvell.c
+++ b/drivers/usb/host/ehci-marvell.c
@@ -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),