]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
firmware: qcom_scm: Add missing is_available API
authorAndy Gross <andy.gross@linaro.org>
Wed, 29 Jun 2016 20:28:29 +0000 (15:28 -0500)
committerAndy Gross <andy.gross@linaro.org>
Tue, 5 Jul 2016 21:29:24 +0000 (16:29 -0500)
Add back function that was dropped when reworking the SCM code.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/firmware/qcom_scm.c

index 84330c5f05d0b9ae270c53be669811b3c8363a24..89c3775fb69bc293d447f6116ed4bb97857b7a37 100644 (file)
@@ -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)
 {