]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
soc: qualcomm: Fix not calling dev_err with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:45:10 +0000 (10:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:43 +0000 (08:53 -0400)
Remove the indirection.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/smem/msm_smem.c

index 2557269bc546f49ad9d24d9328e832f89c1e728e..597d425d11f9dde920b2da5a2427e9fc4a52b092 100644 (file)
@@ -879,7 +879,7 @@ static int qcom_smem_probe(struct udevice *dev)
        header = smem->regions[0].virt_base;
        if (le32_to_cpu(header->initialized) != 1 ||
            le32_to_cpu(header->reserved)) {
-               dev_err(&pdev->dev, "SMEM is not initialized by SBL\n");
+               dev_err(dev, "SMEM is not initialized by SBL\n");
                return -EINVAL;
        }