mtd: onenand: omap2: Remove skip initial unlocking support
authorLadislav Michl <ladis@linux-mips.org>
Fri, 12 Jan 2018 13:13:56 +0000 (14:13 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 12 Jan 2018 14:34:10 +0000 (15:34 +0100)
No platform data user sets skip_initial_unlocking, so remove test
for this field.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Acked-by: Roger Quadros <rogerq@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/onenand/omap2.c

index a03e1fe4aa4887b208c30adb25a80c63cd4cfda5..93bd94337b355b4ecc0137fe2fdc0bfb8f4126ab 100644 (file)
@@ -700,9 +700,6 @@ static int omap2_onenand_probe(struct platform_device *pdev)
                }
        }
 
-       if (pdata->skip_initial_unlocking)
-               this->options |= ONENAND_SKIP_INITIAL_UNLOCKING;
-
        if ((r = onenand_scan(&c->mtd, 1)) < 0)
                goto err_release_dma;