msm: modem-8960: Add CPU check for MSM8960

Don't try to initialize the MSM8960 modem driver on a
target other than MSM8960.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
diff --git a/arch/arm/mach-msm/modem-8960.c b/arch/arm/mach-msm/modem-8960.c
index 8baa800..c2073b3 100644
--- a/arch/arm/mach-msm/modem-8960.c
+++ b/arch/arm/mach-msm/modem-8960.c
@@ -27,6 +27,7 @@
 #include <mach/subsystem_restart.h>
 #include <mach/subsystem_notif.h>
 #include <mach/irqs-8960.h>
+#include <mach/socinfo.h>
 
 #include "smd_private.h"
 #include "modem_notifier.h"
@@ -201,6 +202,9 @@
 {
 	int ret;
 
+	if (!cpu_is_msm8960())
+		return -ENODEV;
+
 	ret = smsm_state_cb_register(SMSM_MODEM_STATE, SMSM_RESET,
 		smsm_state_cb, 0);