summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorAndy Gross <andy.gross@linaro.org>2016-06-29 23:28:29 +0300
committerAndy Gross <andy.gross@linaro.org>2016-07-06 00:29:24 +0300
commit72d43419400f31d9eb634466446e3ceddce30be7 (patch)
treead9b0fbdee91befa8a55c947decc463d1f7f3b19 /drivers/firmware
parent2cd83c75d4d2cb9832ccb4989443195c2379493e (diff)
downloadlinux-72d43419400f31d9eb634466446e3ceddce30be7.tar.xz
firmware: qcom_scm: Add missing is_available API
Add back function that was dropped when reworking the SCM code. Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/qcom_scm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c
index 84330c5f05d0..89c3775fb69b 100644
--- a/drivers/firmware/qcom_scm.c
+++ b/drivers/firmware/qcom_scm.c
@@ -308,6 +308,14 @@ static const struct reset_control_ops qcom_scm_pas_reset_ops = {
.deassert = qcom_scm_pas_reset_deassert,
};
+/**
+ * qcom_scm_is_available() - Checks if SCM is available
+ */
+bool qcom_scm_is_available(void)
+{
+ return !!__scm;
+}
+EXPORT_SYMBOL(qcom_scm_is_available);
static int qcom_scm_probe(struct platform_device *pdev)
{