]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: sunxi: Fix not calling dev_err with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:45:11 +0000 (10:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:45 +0000 (08:53 -0400)
Use `bus` and not `dev`.

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

index cd2e17bfd1a208c40d8b045eba0dcfb64ed4c053..0844a5a0a6ac10e1f197f5deedc819fc8c07066d 100644 (file)
@@ -489,19 +489,19 @@ static int sun4i_spi_probe(struct udevice *bus)
 
        ret = clk_get_by_name(bus, "ahb", &priv->clk_ahb);
        if (ret) {
-               dev_err(dev, "failed to get ahb clock\n");
+               dev_err(bus, "failed to get ahb clock\n");
                return ret;
        }
 
        ret = clk_get_by_name(bus, "mod", &priv->clk_mod);
        if (ret) {
-               dev_err(dev, "failed to get mod clock\n");
+               dev_err(bus, "failed to get mod clock\n");
                return ret;
        }
 
        ret = reset_get_by_index(bus, 0, &priv->reset);
        if (ret && ret != -ENOENT) {
-               dev_err(dev, "failed to get reset\n");
+               dev_err(bus, "failed to get reset\n");
                return ret;
        }