msm: pil: Stub out pil_get() for 8064 at runtime

Make pil_get() always return NULL for this target until it
is fully supported. Compile time stubs are not sufficient
since the same kernel image must work for both 8064 and 8960,
and 8960 requires a real PIL implementation.

Change-Id: I3c6c1e570a99bbea254e6c0886fdb407107ca07a
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/peripheral-loader.c b/arch/arm/mach-msm/peripheral-loader.c
index c8f0798..dc3b26f 100644
--- a/arch/arm/mach-msm/peripheral-loader.c
+++ b/arch/arm/mach-msm/peripheral-loader.c
@@ -20,6 +20,8 @@
 #include <linux/mutex.h>
 #include <linux/memblock.h>
 
+#include <mach/socinfo.h>
+
 #include <asm/uaccess.h>
 #include <asm/setup.h>
 
@@ -232,6 +234,10 @@
 	struct pil_device *pil_d;
 	void *retval;
 
+	/* PIL is not yet supported on 8064. */
+	if (cpu_is_apq8064())
+		return NULL;
+
 	pil = retval = find_peripheral(name);
 	if (!pil)
 		return ERR_PTR(-ENODEV);