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.c b/arch/arm/mach-msm/qdss.c
index fd1fc2b..c9bc9bc 100644
--- a/arch/arm/mach-msm/qdss.c
+++ b/arch/arm/mach-msm/qdss.c
@@ -369,11 +369,18 @@
return 0;
}
+static struct of_device_id qdss_match[] = {
+ {.compatible = "qcom,msm-qdss"},
+ {}
+};
+
static struct platform_driver qdss_driver = {
.probe = qdss_probe,
.remove = __devexit_p(qdss_remove),
.driver = {
.name = "msm_qdss",
+ .owner = THIS_MODULE,
+ .of_match_table = qdss_match,
},
};