Home
last modified time | relevance | path

Searched hist:"24 c185cf58a5bef1e0401a0f7e70526d6d9078c7" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mtd/
H A Dcfi_flash.c24c185cf58a5bef1e0401a0f7e70526d6d9078c7 Fri May 17 05:50:37 UTC 2013 Masahiro Yamada <yamada.m@jp.panasonic.com> cfi_flash: return NULL for invalid base address input

When base address given was out of valid flash address ranges,
flash_get_info() function returned the pointer to the last
element of flash_info[i] array.

This patch changes this function to return NULL pointer
in such a case, which is more correct behaviour.

The function flash_protect_default() calls flash_protect()
immediately after flash_get_info() invocation.
With this correction, flash_protect() function would be
able to return soon, for NULL flash_info.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Stefan Roese <sr@denx.de>