summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/omap2.c
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2014-03-03 15:38:33 +0530
committerBrian Norris <computersforpeace@gmail.com>2014-03-20 02:55:28 -0700
commitc7b05e97010ee134d586ec093c96f4a32d17e552 (patch)
tree973161b934356863be1d958bf4b2a45410951532 /drivers/mtd/nand/omap2.c
parent16e69322c521c44e1c95c744fd1cca23549aa103 (diff)
downloadlinux-stable-c7b05e97010ee134d586ec093c96f4a32d17e552.tar.gz
linux-stable-c7b05e97010ee134d586ec093c96f4a32d17e552.tar.bz2
linux-stable-c7b05e97010ee134d586ec093c96f4a32d17e552.zip
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/omap2.c')
-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 {
int buf_len;
struct gpmc_nand_regs reg;
/* fields specific for BCHx_HW ECC scheme */
- bool is_elm_used;
struct device *elm_dev;
struct device_node *of_node;
};
@@ -1541,7 +1540,6 @@ static int is_elm_present(struct omap_nand_info *info,
struct device_node *elm_node, enum bch_ecc bch_type)
{
struct platform_device *pdev;
- info->is_elm_used = false;
/* check whether elm-id is passed via DT */
if (!elm_node) {
pr_err("nand: error: ELM DT node not found\n");
@@ -1557,7 +1555,6 @@ static int is_elm_present(struct omap_nand_info *info,
info->elm_dev = &pdev->dev;
if (elm_config(info->elm_dev, bch_type))
return -ENODEV;
- info->is_elm_used = true;
return 0;
}
#endif /* CONFIG_MTD_NAND_ECC_BCH */