msm: board-8974: Call of_mpm_init function

Add a call to of_mpm_init function from within the msm_8974_init_irq().
The MPM drivers keeps account of all enabled interrupts in the system to
be able to configure the MPM hardware during low power sleep modes. To
ensure that MPM receives notification for all interrupts, it needs to be
initialized as soon as the system interrupt controllers are initliazed.

Change-Id: I61f01fc9a7a6caf5b950f24cf7474f86c97745ca
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8974.c b/arch/arm/mach-msm/board-8974.c
index 6b46a2f..30b44bd 100644
--- a/arch/arm/mach-msm/board-8974.c
+++ b/arch/arm/mach-msm/board-8974.c
@@ -44,6 +44,7 @@
 #include <mach/qpnp-int.h>
 #include <mach/socinfo.h>
 #include <mach/msm_bus_board.h>
+#include <mach/mpm.h>
 #include "clock.h"
 #include "devices.h"
 #include "spm.h"
@@ -605,10 +606,22 @@
 	{ .compatible = "qcom,spmi-pmic-arb", .data = qpnpint_of_init, },
 	{}
 };
+static struct of_device_id mpm_match[] __initdata = {
+	{.compatible = "qcom,mpm-v2", },
+	{},
+};
 
 void __init msm_8974_init_irq(void)
 {
+	struct device_node *node;
+
 	of_irq_init(irq_match);
+	node = of_find_matching_node(NULL, mpm_match);
+
+	WARN_ON(!node);
+
+	if (node)
+		of_mpm_init(node);
 }
 
 static struct of_dev_auxdata msm_8974_auxdata_lookup[] __initdata = {