Don't set ao_flash_setup_done until we're actually done.
authorKeith Packard <keithp@keithp.com>
Sun, 10 Jan 2010 04:42:57 +0000 (20:42 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 10 Jan 2010 04:42:57 +0000 (20:42 -0800)
commit05bb953830604721c9a49dd56256b86f3666b5ff
treeacb7f320195d5bef3b034ab742e9f6a1bf2e3cbb
parent327e5e782958e516a7b7a786ab6c176b0decb8b8
Don't set ao_flash_setup_done until we're actually done.

Because we're accessing this variable outside of the mutex, we need to
make sure it isn't set until the data it covers has been initialized.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_flash.c
src/at45db161d.h