diff options
Diffstat (limited to 'zephyr/drivers/cros_flash/cros_flash_it8xxx2.c')
-rw-r--r-- | zephyr/drivers/cros_flash/cros_flash_it8xxx2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c b/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c index f238b1557b..0b1899feda 100644 --- a/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c +++ b/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c @@ -321,7 +321,6 @@ static int flash_it8xxx2_init(const struct device *dev) static struct cros_flash_it8xxx2_data cros_flash_data; -DEVICE_DEFINE(cros_flash_it8xxx2_0, DT_INST_LABEL(0), flash_it8xxx2_init, NULL, - &cros_flash_data, NULL, PRE_KERNEL_1, - CONFIG_KERNEL_INIT_PRIORITY_DEVICE, - &cros_flash_it8xxx2_driver_api); +DEVICE_DT_INST_DEFINE(0, flash_it8xxx2_init, NULL, &cros_flash_data, NULL, + PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, + &cros_flash_it8xxx2_driver_api); |