Commit 44d73223 authored by Roger Quadros's avatar Roger Quadros Committed by Miquel Raynal

mtd: rawnand: omap2: drop unused variable

devsize is not used anywhere in code. Drop it.
Signed-off-by: default avatarRoger Quadros <rogerq@kernel.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211209090458.24830-7-rogerq@kernel.org
parent 4695a3cf
......@@ -148,7 +148,6 @@ struct omap_nand_info {
int gpmc_cs;
bool dev_ready;
enum nand_io xfer_type;
int devsize;
enum omap_ecc ecc_opt;
struct device_node *elm_of_node;
......@@ -2246,9 +2245,6 @@ static int omap_nand_probe(struct platform_device *pdev)
if (info->flash_bbt)
nand_chip->bbt_options |= NAND_BBT_USE_FLASH;
/* scan NAND device connected to chip controller */
nand_chip->options |= info->devsize & NAND_BUSWIDTH_16;
/* default operations */
info->data_in = omap_nand_data_in;
info->data_out = omap_nand_data_out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment