Don't calculate "flash_baseaddr" until the final value of "size" is known, otherwise we end up trying to map a page right after end of memory.
Fixes #112.
Signed-off-by: Segher Boessenkool segher@kernel.crashing.org
Acked-by: Stefan Reinauer stepan@coresystems.de
Committed, r3502.
Segher