Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 551d5dd1 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

soc: qcom: scm: Fix SCM device initialization



Ensure that the SCM device is set only if dma_set_mask()
occurs successfully.

Change-Id: I98d305dbee85313dc328ecf74aff3dfeea98f838
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 0e0da9c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -595,11 +595,11 @@ static int qcom_scm_probe(struct platform_device *pdev)
		return -ENODEV;
	}

	qcom_scm_dev = &pdev->dev;

#ifdef CONFIG_ARM64
	ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
#endif
	if (!ret)
		qcom_scm_dev = &pdev->dev;

	return ret;
}