Explorar o código

soc: qualcomm: Fix not calling dev_err with a device

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>
Sean Anderson %!s(int64=3) %!d(string=hai) anos
pai
achega
cc6c2904b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/smem/msm_smem.c

+ 1 - 1
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;
 	}