mtd: onenand: omap2: Remove skip initial unlocking support

No platform data user sets skip_initial_unlocking, so remove test
for this field.

Signed-off-by: Ladislav Michl <[email protected]>
Reviewed-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Acked-by: Roger Quadros <[email protected]>
Tested-by: Tony Lindgren <[email protected]>
Tested-by: Aaro Koskinen <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
This commit is contained in:
Ladislav Michl 2018-01-12 14:13:56 +01:00 • committed by Boris Brezillon
commit 11066d4295

View 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;