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

Commit 72d43419 authored by Andy Gross's avatar Andy Gross
Browse files

firmware: qcom_scm: Add missing is_available API



Add back function that was dropped when reworking the SCM code.

Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
parent 2cd83c75
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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)
{