Heiko Schocher 73b0cd57fc UBI: Set free_count to zero before walking through erase list
Set free_count to zero before walking through ai->erase list
in wl_init().

Found in U-Boot as U-Boot has no workqueue/threads, it immediately
calls erase_worker(), which increase for each erased block
free_count. Without this patch, free_count gets after
this initialized to zero in wl_init(), so the free_count
variable always has the maybe wrong value 0 in U-Boot.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2016-05-24 15:24:33 +02:00
..
2016-01-13 11:25:54 -08:00
2016-04-15 15:25:09 -07:00
2016-03-24 19:57:15 -07:00
2016-03-24 19:57:15 -07:00
2014-04-14 11:23:01 -07:00
2015-02-18 08:01:44 -08:00
2014-03-10 22:42:25 -07:00
2015-11-16 15:07:16 -08:00