[MTD] [NAND] Remove unused variable in plat_nand_remove
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun Feb 3 02:59:02 EST 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a50367784ea6ef8d4276daac0dfcfaa896f8530b
Commit: a50367784ea6ef8d4276daac0dfcfaa896f8530b
Parent: b7e23d913aafc93fc5f119e1be17620073cc3811
Author: Li Zefan <lizf at cn.fujitsu.com>
AuthorDate: Sun Feb 3 10:06:45 2008 +0800
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sun Feb 3 18:31:52 2008 +1100
[MTD] [NAND] Remove unused variable in plat_nand_remove
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 at cn.fujitsu.com>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
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
More information about the linux-mtd-cvs
mailing list