soc: qcom: Prune unused SCM calls

Prune unused SCM calls for upstream SCM driver migration.

Change-Id: Ic29d3085d2df6c5d9a276aaa22e0710951313615
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Elliot Berman 2019-10-17 16:49:06 -07:00
commit 6c33f33594
2 changed files with 1 additions and 27 deletions

View file

@ -15,7 +15,6 @@
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <soc/qcom/memory_dump.h>
#include <soc/qcom/scm.h>
#include <dt-bindings/soc/qcom,dcc_v2.h>
#define TIMEOUT_US (100)

View file

@ -12,15 +12,13 @@
#include <linux/of_address.h>
#include <soc/qcom/minidump.h>
#include <soc/qcom/memory_dump.h>
#include <soc/qcom/scm.h>
#include <linux/qcom_scm.h>
#include <linux/of_device.h>
#include <linux/dma-mapping.h>
#include <linux/module.h>
#define MSM_DUMP_TABLE_VERSION MSM_DUMP_MAKE_VERSION(2, 0)
#define SCM_CMD_DEBUG_LAR_UNLOCK 0x4
struct msm_dump_table {
uint32_t version;
uint32_t num_entries;
@ -227,29 +225,6 @@ err0:
}
early_initcall(init_memory_dump);
#ifdef CONFIG_MSM_DEBUG_LAR_UNLOCK
static int __init init_debug_lar_unlock(void)
{
int ret;
uint32_t argument = 0;
struct scm_desc desc = {0};
if (!is_scm_armv8())
ret = scm_call(SCM_SVC_TZ, SCM_CMD_DEBUG_LAR_UNLOCK, &argument,
sizeof(argument), NULL, 0);
else
ret = scm_call2(SCM_SIP_FNID(SCM_SVC_TZ,
SCM_CMD_DEBUG_LAR_UNLOCK), &desc);
if (ret)
pr_err("Core Debug Lock unlock failed, ret: %d\n", ret);
else
pr_info("Core Debug Lock unlocked\n");
return ret;
}
early_initcall(init_debug_lar_unlock);
#endif
static int mem_dump_probe(struct platform_device *pdev)
{
struct device_node *child_node;