mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
sysreset: ti: Fix not calling dev_err with a device
The rst variable doesn't exist. Signed-off-by: Sean Anderson <seanga2@gmail.com> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
49dfbe924c
commit
9c610289b6
1 changed files with 1 additions and 2 deletions
|
@ -51,8 +51,7 @@ static int ti_sci_sysreset_request(struct udevice *dev, enum sysreset_t type)
|
|||
|
||||
ret = cops->reboot_device(sci);
|
||||
if (ret)
|
||||
dev_err(rst->dev, "%s: reboot_device failed (%d)\n",
|
||||
__func__, ret);
|
||||
dev_err(dev, "%s: reboot_device failed (%d)\n", __func__, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue