Home
last modified time | relevance | path

Searched hist:"439 fcb9b4f717f5a583014acb3e75b789564867c" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/include/
H A Dspi_flash.h439fcb9b4f717f5a583014acb3e75b789564867c Fri Nov 13 10:46:26 UTC 2015 Bin Meng <bmeng.cn@gmail.com> sf: Fix NULL pointer exception for flashes without lock methods

commit c3c016c "sf: Add SPI NOR protection mechanism" introduced
flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash,
but not every flash driver supplies these. We should test these
methods against NULL before actually calling them.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>