aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/pxa3xx_nand.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-06-03 03:34:33 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:01:59 -0400
commit1676bc18c6648c378029dad365756e12be7da025 (patch)
tree8ab4f3999448d9f44cfc3908a9a536f28acb96c6 /drivers/mtd/nand/pxa3xx_nand.c
parent7578ca927b1a2a0445c9a3166d05462b9ffd4c06 (diff)
mtd: pxa3xx_nand: remove unused variable 'mtd'
Remove unused variable 'mtd' to eliminate below warning. CC drivers/mtd/nand/pxa3xx_nand.o drivers/mtd/nand/pxa3xx_nand.c: In function 'pxa3xx_nand_suspend': drivers/mtd/nand/pxa3xx_nand.c:1167: warning: unused variable 'mtd' drivers/mtd/nand/pxa3xx_nand.c: In function 'pxa3xx_nand_resume': drivers/mtd/nand/pxa3xx_nand.c:1180: warning: unused variable 'mtd' Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/nand/pxa3xx_nand.c')
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index f7040ea8dd4b..e11f926c9335 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -1164,7 +1164,6 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
1164static int pxa3xx_nand_suspend(struct platform_device *pdev, pm_message_t state) 1164static int pxa3xx_nand_suspend(struct platform_device *pdev, pm_message_t state)
1165{ 1165{
1166 struct pxa3xx_nand_info *info = platform_get_drvdata(pdev); 1166 struct pxa3xx_nand_info *info = platform_get_drvdata(pdev);
1167 struct mtd_info *mtd = info->mtd;
1168 1167
1169 if (info->state) { 1168 if (info->state) {
1170 dev_err(&pdev->dev, "driver busy, state = %d\n", info->state); 1169 dev_err(&pdev->dev, "driver busy, state = %d\n", info->state);
@@ -1177,7 +1176,6 @@ static int pxa3xx_nand_suspend(struct platform_device *pdev, pm_message_t state)
1177static int pxa3xx_nand_resume(struct platform_device *pdev) 1176static int pxa3xx_nand_resume(struct platform_device *pdev)
1178{ 1177{
1179 struct pxa3xx_nand_info *info = platform_get_drvdata(pdev); 1178 struct pxa3xx_nand_info *info = platform_get_drvdata(pdev);
1180 struct mtd_info *mtd = info->mtd;
1181 1179
1182 nand_writel(info, NDTR0CS0, info->ndtr0cs0); 1180 nand_writel(info, NDTR0CS0, info->ndtr0cs0);
1183 nand_writel(info, NDTR1CS0, info->ndtr1cs0); 1181 nand_writel(info, NDTR1CS0, info->ndtr1cs0);