aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2014-03-03 05:08:33 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-03-20 05:55:28 -0400
commitc7b05e97010ee134d586ec093c96f4a32d17e552 (patch)
tree973161b934356863be1d958bf4b2a45410951532 /drivers/mtd/nand
parent16e69322c521c44e1c95c744fd1cca23549aa103 (diff)
mtd: nand: omap: remove is_elm_present flag
'is_elm_present' flag is not used anywhere. This check is implicitely taken care while selecting appropriate ecc-scheme via DT or board-file. Signed-off-by: Pekon Gupta <pekon@ti.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/omap2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 9962380dbe9a..ab9c472456d9 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -168,7 +168,6 @@ struct omap_nand_info {
168 int buf_len; 168 int buf_len;
169 struct gpmc_nand_regs reg; 169 struct gpmc_nand_regs reg;
170 /* fields specific for BCHx_HW ECC scheme */ 170 /* fields specific for BCHx_HW ECC scheme */
171 bool is_elm_used;
172 struct device *elm_dev; 171 struct device *elm_dev;
173 struct device_node *of_node; 172 struct device_node *of_node;
174}; 173};
@@ -1541,7 +1540,6 @@ static int is_elm_present(struct omap_nand_info *info,
1541 struct device_node *elm_node, enum bch_ecc bch_type) 1540 struct device_node *elm_node, enum bch_ecc bch_type)
1542{ 1541{
1543 struct platform_device *pdev; 1542 struct platform_device *pdev;
1544 info->is_elm_used = false;
1545 /* check whether elm-id is passed via DT */ 1543 /* check whether elm-id is passed via DT */
1546 if (!elm_node) { 1544 if (!elm_node) {
1547 pr_err("nand: error: ELM DT node not found\n"); 1545 pr_err("nand: error: ELM DT node not found\n");
@@ -1557,7 +1555,6 @@ static int is_elm_present(struct omap_nand_info *info,
1557 info->elm_dev = &pdev->dev; 1555 info->elm_dev = &pdev->dev;
1558 if (elm_config(info->elm_dev, bch_type)) 1556 if (elm_config(info->elm_dev, bch_type))
1559 return -ENODEV; 1557 return -ENODEV;
1560 info->is_elm_used = true;
1561 return 0; 1558 return 0;
1562} 1559}
1563#endif /* CONFIG_MTD_NAND_ECC_BCH */ 1560#endif /* CONFIG_MTD_NAND_ECC_BCH */