]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sysreset: ti: Fix not calling dev_err with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:45:13 +0000 (10:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:48 +0000 (08:53 -0400)
The rst variable doesn't exist.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/sysreset/sysreset-ti-sci.c

index 3877b9bc1258c2ec57930555366855bdb87088ac..7707c72bb5e4517a20217a86d6c2a64f8649921a 100644 (file)
@@ -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;
 }