msm: qdss: add device tree matching
Populate device tree matching code for the qdss drivers.
Change-Id: Ic0af621e2d1c0dd9dc81df3482c63b071c1db741
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
diff --git a/arch/arm/mach-msm/qdss-stm.c b/arch/arm/mach-msm/qdss-stm.c
index 9ce6318..0d44c1a 100644
--- a/arch/arm/mach-msm/qdss-stm.c
+++ b/arch/arm/mach-msm/qdss-stm.c
@@ -571,11 +571,18 @@
return 0;
}
+static struct of_device_id stm_match[] = {
+ {.compatible = "qcom,msm-stm"},
+ {}
+};
+
static struct platform_driver stm_driver = {
.probe = stm_probe,
.remove = __devexit_p(stm_remove),
.driver = {
.name = "msm_stm",
+ .owner = THIS_MODULE,
+ .of_match_table = stm_match,
},
};