From: Sean Anderson Date: Tue, 15 Sep 2020 14:45:06 +0000 (-0400) Subject: phy: usbphyc: Fix not calling dev_err with a device X-Git-Tag: baikal/mips/sdk5.9~184^2~9^2~16 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=079ad9456e7a4d37e36f850c17efe1328e5420b7;p=uboot.git phy: usbphyc: Fix not calling dev_err with a device Use the phy's device. Signed-off-by: Sean Anderson Reviewed-by: Patrice Chotard Reviewed-by: Patrick Delaunay Tested-by: Patrick Delaunay --- diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index c6d3048602..9d4296d649 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; }