mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
phy: sun4i-usb: Fix not calling dev_err with a device
This uses phy's device Signed-off-by: Sean Anderson <seanga2@gmail.com> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
e9e1bd1f75
commit
7334517310
1 changed files with 8 additions and 4 deletions
|
@ -272,13 +272,15 @@ static int sun4i_usb_phy_init(struct phy *phy)
|
||||||
|
|
||||||
ret = clk_enable(&usb_phy->clocks);
|
ret = clk_enable(&usb_phy->clocks);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "failed to enable usb_%ldphy clock\n", phy->id);
|
dev_err(phy->dev, "failed to enable usb_%ldphy clock\n",
|
||||||
|
phy->id);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = reset_deassert(&usb_phy->resets);
|
ret = reset_deassert(&usb_phy->resets);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "failed to deassert usb_%ldreset reset\n", phy->id);
|
dev_err(phy->dev, "failed to deassert usb_%ldreset reset\n",
|
||||||
|
phy->id);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -338,13 +340,15 @@ static int sun4i_usb_phy_exit(struct phy *phy)
|
||||||
|
|
||||||
ret = clk_disable(&usb_phy->clocks);
|
ret = clk_disable(&usb_phy->clocks);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "failed to disable usb_%ldphy clock\n", phy->id);
|
dev_err(phy->dev, "failed to disable usb_%ldphy clock\n",
|
||||||
|
phy->id);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = reset_assert(&usb_phy->resets);
|
ret = reset_assert(&usb_phy->resets);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "failed to assert usb_%ldreset reset\n", phy->id);
|
dev_err(phy->dev, "failed to assert usb_%ldreset reset\n",
|
||||||
|
phy->id);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue