]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/usb/host/xhci-dwc3.c
treewide: replace with error() with pr_err()
[people/ms/u-boot.git] / drivers / usb / host / xhci-dwc3.c
index 4191a894218f64141108b837b45f4d4112b11165..258d1cd00a085adaa9cf1c613947eaf43c3767aa 100644 (file)
@@ -128,13 +128,13 @@ static int xhci_dwc3_probe(struct udevice *dev)
        ret = generic_phy_get_by_index(dev, 0, &plat->usb_phy);
        if (ret) {
                if (ret != -ENOENT) {
-                       error("Failed to get USB PHY for %s\n", dev->name);
+                       pr_err("Failed to get USB PHY for %s\n", dev->name);
                        return ret;
                }
        } else {
                ret = generic_phy_init(&plat->usb_phy);
                if (ret) {
-                       error("Can't init USB PHY for %s\n", dev->name);
+                       pr_err("Can't init USB PHY for %s\n", dev->name);
                        return ret;
                }
        }
@@ -161,7 +161,7 @@ static int xhci_dwc3_remove(struct udevice *dev)
        if (generic_phy_valid(&plat->usb_phy)) {
                ret = generic_phy_exit(&plat->usb_phy);
                if (ret) {
-                       error("Can't deinit USB PHY for %s\n", dev->name);
+                       pr_err("Can't deinit USB PHY for %s\n", dev->name);
                        return ret;
                }
        }