diff --git a/drivers/mtd/devices/msm_qpic_nand.c b/drivers/mtd/devices/msm_qpic_nand.c
index 26a0c5dcc7c1c84ff8ac6960d1f6a19728f216db..8cbbfde99ee09f374eaa6bfea910c264ac4c7756 100644
--- a/drivers/mtd/devices/msm_qpic_nand.c
+++ b/drivers/mtd/devices/msm_qpic_nand.c
@@ -336,7 +336,9 @@ struct flash_partition_table {
 	struct flash_partition_entry part_entry[FLASH_PTABLE_MAX_PARTS_V4];
 };
 
+#ifdef CONFIG_MSM_SMD
 static struct flash_partition_table ptable;
+#endif
 
 static struct mtd_partition mtd_part[FLASH_PTABLE_MAX_PARTS_V4];