Skip to content
Commit ecf15442 authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

env: sf: remove the static env_flash variable



As the the SPI flash is probed and is released in each ENV sf function
the env_flash no more need to be static.

This patch move this device handle as local variable of each function and
simplify the associated code (env_flash is never == NULL when
setup_flash_device is called).

Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
parent c2d00364
Loading
Loading
Loading
Loading