From: Sean Anderson Date: Tue, 15 Sep 2020 14:45:13 +0000 (-0400) Subject: sysreset: ti: Fix not calling dev_err with a device X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=9c610289b61b289dec16d4adc5e2381212784e48;p=u-boot.git sysreset: ti: Fix not calling dev_err with a device The rst variable doesn't exist. Signed-off-by: Sean Anderson Tested-by: Patrick Delaunay --- diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c index 3877b9bc12..7707c72bb5 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; }