* [PATCH] MTD/NAND: fix a compile warning in plat_nand_remove
@ 2008-02-03 2:06 Li Zefan
0 siblings, 0 replies; only message in thread
From: Li Zefan @ 2008-02-03 2:06 UTC (permalink / raw)
To: dwmw2; +Cc: linux-mtd, LKML
With CONFIG_MTD_PARTITIONS not set, got this:
drivers/mtd/nand/plat_nand.c:113: warning: unused variable 'pdata'
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
drivers/mtd/nand/plat_nand.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c
index cd725fc..f6d5c2a 100644
--- a/drivers/mtd/nand/plat_nand.c
+++ b/drivers/mtd/nand/plat_nand.c
@@ -110,7 +110,9 @@ out:
static int __devexit plat_nand_remove(struct platform_device *pdev)
{
struct plat_nand_data *data = platform_get_drvdata(pdev);
+#ifdef CONFIG_MTD_PARTITIONS
struct platform_nand_data *pdata = pdev->dev.platform_data;
+#endif
nand_release(&data->mtd);
#ifdef CONFIG_MTD_PARTITIONS
--
1.5.4.rc3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-03 4:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-03 2:06 [PATCH] MTD/NAND: fix a compile warning in plat_nand_remove Li Zefan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox