From 78a762314411fc1f5871f2899423234b59ef70ba Mon Sep 17 00:00:00 2001 From: Joonwoo Park Date: Mon, 17 Mar 2014 17:35:08 -0700 Subject: 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 --- drivers/mtd/devices/msm_qpic_nand.c | 2 ++ 1 file changed, 2 insertions(+) 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]; -- cgit v1.2.3