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

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/spi/zynqmp_gqspi.c

index a72986be9078e3d8aad6acfa5fd7178cfcf6dc59..e0e668703776ddb8905fd43367a37f5f67aa7b65 100644 (file)
@@ -346,20 +346,20 @@ static int zynqmp_qspi_probe(struct udevice *bus)
 
        ret = clk_get_by_index(bus, 0, &clk);
        if (ret < 0) {
-               dev_err(dev, "failed to get clock\n");
+               dev_err(bus, "failed to get clock\n");
                return ret;
        }
 
        clock = clk_get_rate(&clk);
        if (IS_ERR_VALUE(clock)) {
-               dev_err(dev, "failed to get rate\n");
+               dev_err(bus, "failed to get rate\n");
                return clock;
        }
        debug("%s: CLK %ld\n", __func__, clock);
 
        ret = clk_enable(&clk);
        if (ret && ret != -ENOSYS) {
-               dev_err(dev, "failed to enable clock\n");
+               dev_err(bus, "failed to enable clock\n");
                return ret;
        }
        plat->frequency = clock;