mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
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>
This commit is contained in:
parent
29e0969bbd
commit
0aeaca622a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue