diff options
author | Sean Anderson | 2020-09-15 10:45:13 -0400 |
---|---|---|
committer | Tom Rini | 2020-09-30 08:53:48 -0400 |
commit | 9c610289b61b289dec16d4adc5e2381212784e48 (patch) | |
tree | 7d1547b309c9215a071d9ffd18a92aa87657564f /drivers/sysreset | |
parent | 49dfbe924ca0e54d03866dfc2208072a8ecf38ed (diff) |
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>
Diffstat (limited to 'drivers/sysreset')
-rw-r--r-- | drivers/sysreset/sysreset-ti-sci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c index 3877b9bc125..7707c72bb5e 100644 --- a/drivers/sysreset/sysreset-ti-sci.c +++ b/drivers/sysreset/sysreset-ti-sci.c @@ -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; } |