Skip to content

Commit

Permalink
[MTD] [NAND] Remove unused variable in plat_nand_remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Zefan authored and David Woodhouse committed Feb 3, 2008
1 parent b7e23d9 commit a503677
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mtd/nand/plat_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ static int __init plat_nand_probe(struct platform_device *pdev)
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
Expand Down

0 comments on commit a503677

Please sign in to comment.