From: Sean Anderson Date: Tue, 15 Sep 2020 14:45:10 +0000 (-0400) Subject: soc: qualcomm: Fix not calling dev_err with a device X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=cc6c2904b297abb02f25c5e20af13f4af0254db1;p=u-boot.git soc: qualcomm: Fix not calling dev_err with a device Remove the indirection. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass Tested-by: Patrick Delaunay --- diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c index 2557269bc5..597d425d11 100644 --- a/drivers/smem/msm_smem.c +++ b/drivers/smem/msm_smem.c @@ -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; }