OSDN Git Service

soc: qcom: rmtfs-mem: Validate that scm is available
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 28 Aug 2018 05:05:48 +0000 (22:05 -0700)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 21:11:39 +0000 (16:11 -0500)
commit137dc5843faeacabf48fc22a8dc58c4e0b4f0927
treebdf799fef28e8ed9df81ab0337ccda05ca8b4e37
parent61a3bd10082b0e861b4e1bc451a92e20181a52f5
soc: qcom: rmtfs-mem: Validate that scm is available

The scm device must be present in order for the rmtfs driver to
configure memory permissions for the rmtfs memory region, so check that
it is probed before continuing.

Cc: stable@vger.kernel.org
Fixes: fa65f8045137 ("soc: qcom: rmtfs-mem: Add support for assigning memory to remote")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rmtfs_mem.c