X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Fxhci-rcar.c;h=f2e91ef0feb71bec72f80ebb69b3b07fecd5597d;hb=caa2a2e5ab44d87faf51fafc780ecc985e0c05d6;hp=71202d7b03890c71f71f5c3d6f1a90f0ec1a10bf;hpb=9c486e7cb03787016d2d5a360c5a62296bf5ca7b;p=u-boot diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index 71202d7b03..f2e91ef0fe 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2017 Marek Vasut * * Renesas RCar USB HOST xHCI Controller - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -118,12 +117,15 @@ err_clk: static int xhci_rcar_deregister(struct udevice *dev) { + int ret; struct rcar_xhci_platdata *plat = dev_get_platdata(dev); + ret = xhci_deregister(dev); + clk_disable(&plat->clk); clk_free(&plat->clk); - return xhci_deregister(dev); + return ret; } static int xhci_rcar_ofdata_to_platdata(struct udevice *dev) @@ -142,6 +144,7 @@ static int xhci_rcar_ofdata_to_platdata(struct udevice *dev) static const struct udevice_id xhci_rcar_ids[] = { { .compatible = "renesas,xhci-r8a7795" }, { .compatible = "renesas,xhci-r8a7796" }, + { .compatible = "renesas,xhci-r8a77965" }, { } };