]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: usbphyc: Fix not calling dev_err with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:45:06 +0000 (10:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:36 +0000 (08:53 -0400)
Use the phy's device.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/phy/phy-stm32-usbphyc.c

index c6d3048602560de5fb13fa684d205ac585764d11..9d4296d649182b08e2deafa570ee7c03294e01de 100644 (file)
@@ -311,7 +311,7 @@ static int stm32_usbphyc_of_xlate(struct phy *phy,
 
        if ((phy->id == 0 && args->args_count != 1) ||
            (phy->id == 1 && args->args_count != 2)) {
-               dev_err(dev, "invalid number of cells for phy port%ld\n",
+               dev_err(phy->dev, "invalid number of cells for phy port%ld\n",
                        phy->id);
                return -EINVAL;
        }