提交 9c610289 编写于 作者: S Sean Anderson 提交者: Tom Rini

sysreset: ti: Fix not calling dev_err with a device

The rst variable doesn't exist.
Signed-off-by: NSean Anderson <seanga2@gmail.com>
Tested-by: NPatrick Delaunay <patrick.delaunay@st.com>
上级 49dfbe92
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册