]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: dwc3: ti: Fix not calling dev_err with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:45:17 +0000 (10:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:58 +0000 (08:53 -0400)
This driver does not use DM, so use log_xxx instead.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/usb/dwc3/ti_usb_phy.c

index f8ab06482c9257e2632a2ad9e178c20a3b0992ab..f476810763d1b6f55bf62e07d6229c6a89311989 100644 (file)
@@ -129,7 +129,7 @@ static struct usb3_dpll_params *ti_usb3_get_dpll_params(struct ti_usb_phy *phy)
                        return &dpll_map->params;
        }
 
-       dev_err(phy->dev, "No DPLL configuration for %lu Hz SYS CLK\n", rate);
+       log_err("No DPLL configuration for %lu Hz SYS CLK\n", rate);
 
        return NULL;
 }
@@ -269,7 +269,7 @@ int ti_usb_phy_uboot_init(struct ti_usb_phy_device *dev)
 
        phy = devm_kzalloc(NULL, sizeof(*phy), GFP_KERNEL);
        if (!phy) {
-               dev_err(NULL, "unable to alloc mem for TI USB3 PHY\n");
+               log_err("unable to alloc mem for TI USB3 PHY\n");
                return -ENOMEM;
        }