aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSricharan R <sricharan@codeaurora.org>2016-02-24 16:34:23 +0530
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2016-05-17 14:49:15 +0100
commitd21178af2403bb8c4f5ceaa005de9bc0f8aa4bd6 (patch)
tree41692220dc9ecd669eb9807a0e73bf28b40ced88
parenta9c13d28611cb2dff24be683441f565e54602d2e (diff)
drivers: soc: Fix smd/glink bus registration sequence
Instead of relying on the initcall sequences, which creates wrong dependencies between smd/glink and its child nodes, register smd/glink bus types, based on bus type data from DT. Signed-off-by: Sricharan R <sricharan@codeaurora.org>
-rw-r--r--drivers/soc/qcom/glink_smem_native_xprt.c2
-rw-r--r--drivers/soc/qcom/smd.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/soc/qcom/glink_smem_native_xprt.c b/drivers/soc/qcom/glink_smem_native_xprt.c
index 2796493dfee2f..ab6b1b7c39bb1 100644
--- a/drivers/soc/qcom/glink_smem_native_xprt.c
+++ b/drivers/soc/qcom/glink_smem_native_xprt.c
@@ -2327,7 +2327,7 @@ static int glink_native_probe(struct platform_device *pdev)
return 0;
}
-
+
#if defined(CONFIG_DEBUG_FS)
/**
* debug_edge() - generates formatted text output displaying current edge state
diff --git a/drivers/soc/qcom/smd.c b/drivers/soc/qcom/smd.c
index ba90e9512fc06..5f6f55afde7d3 100644
--- a/drivers/soc/qcom/smd.c
+++ b/drivers/soc/qcom/smd.c
@@ -1504,6 +1504,11 @@ static const struct of_device_id smd_of_device_ids[] __initconst = {
{}
};
+static const struct of_device_id smd_of_device_ids[] __initconst = {
+ { .compatible = "qcom,smd" },
+ {}
+};
+
static int __init qcom_ipc_init(void)
{
struct device_node *np;