Skip to content
Commit 756b90b0 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

flash/spi_flash_w25qxxdv: do not set driver_api if init fails



If the driver fails initializations, do not set the driver_api.
This follows the idea that device_get_binding() will not return
a reference to the driver instance when driver init fails.

Change-Id: Iff56b4150658a76567928b1fd166bde5d2848d52
Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 3cf33cb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment