diff options
author | Sean Anderson | 2020-09-15 10:45:06 -0400 |
---|---|---|
committer | Tom Rini | 2020-09-30 08:53:36 -0400 |
commit | 0aeaca622a7caabe1a5d6f81f9c740ff9abd5cad (patch) | |
tree | 5ffef5d9c99e31552dbf3691d4682560a380256e | |
parent | 29e0969bbd1e406afadc145a61a427d1d528bd64 (diff) |
phy: usbphyc: Fix not calling dev_err with a device
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>
-rw-r--r-- | drivers/phy/phy-stm32-usbphyc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index c6d30486025..9d4296d6491 100644 --- a/drivers/phy/phy-stm32-usbphyc.c +++ b/drivers/phy/phy-stm32-usbphyc.c @@ -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; } |