projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd83c7
)
firmware: qcom_scm: Add missing is_available API
author
Andy Gross
<andy.gross@linaro.org>
Wed, 29 Jun 2016 20:28:29 +0000
(15:28 -0500)
committer
Andy 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/firmware/qcom_scm.c
b/drivers/firmware/qcom_scm.c
index 84330c5f05d0b9ae270c53be669811b3c8363a24..89c3775fb69bc293d447f6116ed4bb97857b7a37 100644
(file)
--- 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)
{