summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2014-03-17 17:35:08 -0700
committerJoonwoo Park <joonwoop@codeaurora.org>2014-03-17 18:07:53 -0700
commit78a762314411fc1f5871f2899423234b59ef70ba (patch)
tree66c2c0f3c54a3b122141e884400f6780e477727c
parent0d7a8b555a7bb81a64c23ba7adafb9f96e664513 (diff)
mtd: msm_qpic_nand: fix compilation warning
Variable ptable is used only with CONFIG_MSM_SMD=y Change-Id: I033103ea6f7f54882ae6a4e8063c95aff8e372d8 Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
-rw-r--r--drivers/mtd/devices/msm_qpic_nand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/devices/msm_qpic_nand.c b/drivers/mtd/devices/msm_qpic_nand.c
index 26a0c5dcc7c1..8cbbfde99ee0 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];