提交 c7b05e97 编写于 作者: P Pekon Gupta 提交者: Brian Norris

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: NPekon Gupta <pekon@ti.com>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 16e69322
...@@ -168,7 +168,6 @@ struct omap_nand_info { ...@@ -168,7 +168,6 @@ struct omap_nand_info {
int buf_len; int buf_len;
struct gpmc_nand_regs reg; struct gpmc_nand_regs reg;
/* fields specific for BCHx_HW ECC scheme */ /* fields specific for BCHx_HW ECC scheme */
bool is_elm_used;
struct device *elm_dev; struct device *elm_dev;
struct device_node *of_node; struct device_node *of_node;
}; };
...@@ -1541,7 +1540,6 @@ static int is_elm_present(struct omap_nand_info *info, ...@@ -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 device_node *elm_node, enum bch_ecc bch_type)
{ {
struct platform_device *pdev; struct platform_device *pdev;
info->is_elm_used = false;
/* check whether elm-id is passed via DT */ /* check whether elm-id is passed via DT */
if (!elm_node) { if (!elm_node) {
pr_err("nand: error: ELM DT node not found\n"); 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,7 +1555,6 @@ static int is_elm_present(struct omap_nand_info *info,
info->elm_dev = &pdev->dev; info->elm_dev = &pdev->dev;
if (elm_config(info->elm_dev, bch_type)) if (elm_config(info->elm_dev, bch_type))
return -ENODEV; return -ENODEV;
info->is_elm_used = true;
return 0; return 0;
} }
#endif /* CONFIG_MTD_NAND_ECC_BCH */ #endif /* CONFIG_MTD_NAND_ECC_BCH */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册