flash: remove obsolete FLASH_DRIVER_NAME

Replace seldom occurrences of FLASH_DRIVER_NAME by equivalent
and commonly used FLASH_DEV_NAME.

Fixes #5919.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2018-02-06 14:28:12 +01:00 committed by Kumar Gala
commit c734c2972f
10 changed files with 7 additions and 40 deletions

View file

@ -318,7 +318,7 @@ int boot_erase_img_bank(u32_t bank_offset)
static int boot_init(struct device *dev)
{
ARG_UNUSED(dev);
flash_dev = device_get_binding(FLASH_DRIVER_NAME);
flash_dev = device_get_binding(FLASH_DEV_NAME);
if (!flash_dev) {
return -ENODEV;
}