diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-10-14 10:29:37 +0900 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-10-27 08:02:36 +0200 |
commit | 99e2df47c4edc2286c4614daf4a82fe1e7a4e4b0 (patch) | |
tree | b0e1d6301290adc9d8c242a7d6bacf5358be0588 /drivers/usb/host | |
parent | 5ac5861c4ba851b473e6a24940b412b397627d8d (diff) | |
download | u-boot-99e2df47c4edc2286c4614daf4a82fe1e7a4e4b0.tar.gz u-boot-99e2df47c4edc2286c4614daf4a82fe1e7a4e4b0.tar.xz u-boot-99e2df47c4edc2286c4614daf4a82fe1e7a4e4b0.zip |
usb: ehci-vf: use ehci_deregister() for .remove callback
This driver was recently converted to Driver Model, so missed the
subsystem-wide cleanups by commit 405273427366 ("usb: replace
ehci_*_remove() with usb_deregister()").
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-vf.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index f6f9efb6cd..f389bff171 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -339,17 +339,6 @@ static int ehci_usb_probe(struct udevice *dev) return ehci_register(dev, hccr, hcor, &vf_ehci_ops, 0, priv->init_type); } -static int ehci_usb_remove(struct udevice *dev) -{ - int ret; - - ret = ehci_deregister(dev); - if (ret) - return ret; - - return 0; -} - static const struct udevice_id vf_usb_ids[] = { { .compatible = "fsl,vf610-usb" }, { } @@ -361,7 +350,7 @@ U_BOOT_DRIVER(usb_ehci) = { .of_match = vf_usb_ids, .bind = vf_usb_bind, .probe = ehci_usb_probe, - .remove = ehci_usb_remove, + .remove = ehci_deregister, .ops = &ehci_usb_ops, .ofdata_to_platdata = vf_usb_ofdata_to_platdata, .platdata_auto_alloc_size = sizeof(struct usb_platdata), |