diff options
author | Li Zefan | 2008-02-03 03:06:45 +0100 |
---|---|---|
committer | David Woodhouse | 2008-02-03 08:31:52 +0100 |
commit | a50367784ea6ef8d4276daac0dfcfaa896f8530b (patch) | |
tree | 248e89a74d62e7e057fc6ae4548faee077077869 /drivers/mtd | |
parent | Merge git://git.infradead.org/~kmpark/onenand-mtd-2.6 (diff) | |
download | kernel-qcow2-linux-a50367784ea6ef8d4276daac0dfcfaa896f8530b.tar.gz kernel-qcow2-linux-a50367784ea6ef8d4276daac0dfcfaa896f8530b.tar.xz kernel-qcow2-linux-a50367784ea6ef8d4276daac0dfcfaa896f8530b.zip |
[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@cn.fujitsu.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | 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 cd725fc5e813..f6d5c2adc4fd 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 |