mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 11:31:32 +00:00
phy: ti: Fix not calling dev_err with a device
`phy` doesn't exist; we need to use `x` instead. Signed-off-by: Sean Anderson <seanga2@gmail.com> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
7334517310
commit
29e0969bbd
1 changed files with 2 additions and 2 deletions
|
@ -318,13 +318,13 @@ static int serdes_am654_of_xlate(struct phy *x,
|
||||||
struct serdes_am654 *phy = dev_get_priv(x->dev);
|
struct serdes_am654 *phy = dev_get_priv(x->dev);
|
||||||
|
|
||||||
if (args->args_count != 2) {
|
if (args->args_count != 2) {
|
||||||
dev_err(phy->dev, "Invalid DT PHY argument count: %d\n",
|
dev_err(x->dev, "Invalid DT PHY argument count: %d\n",
|
||||||
args->args_count);
|
args->args_count);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args->args[0] != PHY_TYPE_PCIE) {
|
if (args->args[0] != PHY_TYPE_PCIE) {
|
||||||
dev_err(phy->dev, "Unrecognized PHY type: %d\n",
|
dev_err(x->dev, "Unrecognized PHY type: %d\n",
|
||||||
args->args[0]);
|
args->args[0]);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue