diff options
Diffstat (limited to 'drivers/usb/host/xhci-fsl.c')
-rw-r--r-- | drivers/usb/host/xhci-fsl.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index bdcd4f1c99..bda5b5f913 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -10,7 +10,7 @@ #include <common.h> #include <usb.h> -#include <asm-generic/errno.h> +#include <linux/errno.h> #include <linux/compat.h> #include <linux/usb/xhci-fsl.h> #include <linux/usb/dwc3.h> @@ -129,15 +129,10 @@ static int xhci_fsl_probe(struct udevice *dev) static int xhci_fsl_remove(struct udevice *dev) { struct xhci_fsl_priv *priv = dev_get_priv(dev); - int ret; fsl_xhci_core_exit(&priv->ctx); - ret = xhci_deregister(dev); - if (ret) - return ret; - - return 0; + return xhci_deregister(dev); } static const struct udevice_id xhci_usb_ids[] = { |