device: rename DECLARE_DEVICE_INIT_CONFIG()

Rename it to DEVICE_INIT_CONFIG_DEFINE(), because (a) it was not fitting
in any namespace and (b) it is not used to declare, but rather define a
object.

Change-Id: I1da5822f06b85a9fb024b5b184afd0ccc01012ec
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-01-26 16:37:12 -05:00 committed by Anas Nashif
commit bfc27206b2
59 changed files with 88 additions and 88 deletions

View file

@ -48,6 +48,6 @@ static int quark_se_arc_init(struct device *arg)
shared_data->flags |= ARC_READY; shared_data->flags |= ARC_READY;
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(quark_se_arc_0, "", quark_se_arc_init, NULL); DEVICE_INIT_CONFIG_DEFINE(quark_se_arc_0, "", quark_se_arc_init, NULL);
SYS_DEFINE_DEVICE(quark_se_arc_0, NULL, PRIMARY, SYS_DEFINE_DEVICE(quark_se_arc_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -33,7 +33,7 @@ static int arc_quark_se_ipm_init(void)
static struct quark_se_ipm_controller_config_info ipm_controller_config = { static struct quark_se_ipm_controller_config_info ipm_controller_config = {
.controller_init = arc_quark_se_ipm_init .controller_init = arc_quark_se_ipm_init
}; };
DECLARE_DEVICE_INIT_CONFIG(quark_se_ipm, "", quark_se_ipm_controller_initialize, DEVICE_INIT_CONFIG_DEFINE(quark_se_ipm, "", quark_se_ipm_controller_initialize,
&ipm_controller_config); &ipm_controller_config);
SYS_DEFINE_DEVICE(quark_se_ipm, NULL, SECONDARY, SYS_DEFINE_DEVICE(quark_se_ipm, NULL, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
@ -46,7 +46,7 @@ struct ipm_console_sender_config_info quark_se_ipm_sender_config = {
.bind_to = "quark_se_ipm4", .bind_to = "quark_se_ipm4",
.flags = IPM_CONSOLE_PRINTK | IPM_CONSOLE_STDOUT, .flags = IPM_CONSOLE_PRINTK | IPM_CONSOLE_STDOUT,
}; };
DECLARE_DEVICE_INIT_CONFIG(ipm_console, "ipm_console", DEVICE_INIT_CONFIG_DEFINE(ipm_console, "ipm_console",
ipm_console_sender_init, ipm_console_sender_init,
&quark_se_ipm_sender_config); &quark_se_ipm_sender_config);
SYS_DEFINE_DEVICE(ipm_console, NULL, SECONDARY, CONFIG_IPM_CONSOLE_PRIORITY); SYS_DEFINE_DEVICE(ipm_console, NULL, SECONDARY, CONFIG_IPM_CONSOLE_PRIORITY);
@ -73,7 +73,7 @@ static int uart_ns16550_init(struct device *dev)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(uart_ns16550_init, "", uart_ns16550_init, NULL); DEVICE_INIT_CONFIG_DEFINE(uart_ns16550_init, "", uart_ns16550_init, NULL);
SYS_DEFINE_DEVICE(uart_ns16550_init, NULL, PRIMARY, SYS_DEFINE_DEVICE(uart_ns16550_init, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -194,5 +194,5 @@ static int atmel_sam3_init(struct device *arg)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(atmel_sam3_0, "", atmel_sam3_init, NULL); DEVICE_INIT_CONFIG_DEFINE(atmel_sam3_0, "", atmel_sam3_init, NULL);
SYS_DEFINE_DEVICE(atmel_sam3_0, NULL, PRIMARY, 0); SYS_DEFINE_DEVICE(atmel_sam3_0, NULL, PRIMARY, 0);

View file

@ -320,5 +320,5 @@ static int fsl_frdm_k64f_init(struct device *arg)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(fsl_frdm_0, "", fsl_frdm_k64f_init, NULL); DEVICE_INIT_CONFIG_DEFINE(fsl_frdm_0, "", fsl_frdm_k64f_init, NULL);
SYS_DEFINE_DEVICE(fsl_frdm_0, NULL, PRIMARY, 0); SYS_DEFINE_DEVICE(fsl_frdm_0, NULL, PRIMARY, 0);

View file

@ -71,7 +71,7 @@ static int uart_k20_console_init(struct device *dev)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(_uart_k20_console, "", uart_k20_console_init, NULL); DEVICE_INIT_CONFIG_DEFINE(_uart_k20_console, "", uart_k20_console_init, NULL);
SYS_DEFINE_DEVICE(_uart_k20_console, NULL, PRIMARY, SYS_DEFINE_DEVICE(_uart_k20_console, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
@ -117,7 +117,7 @@ static int uart_k20_init(struct device *dev)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(_uart_k20_init, "", uart_k20_init, NULL); DEVICE_INIT_CONFIG_DEFINE(_uart_k20_init, "", uart_k20_init, NULL);
SYS_DEFINE_DEVICE(_uart_k20_init, NULL, PRIMARY, SYS_DEFINE_DEVICE(_uart_k20_init, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -56,6 +56,6 @@ static int ti_lm3s6965_init(struct device *arg)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(ti_lm3_0, "", ti_lm3s6965_init, NULL); DEVICE_INIT_CONFIG_DEFINE(ti_lm3_0, "", ti_lm3s6965_init, NULL);
SYS_DEFINE_DEVICE(ti_lm3_0, NULL, PRIMARY, SYS_DEFINE_DEVICE(ti_lm3_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -51,7 +51,7 @@ static int uart_stellaris_init(struct device *dev)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(_uart_stellaris_en, "", uart_stellaris_init, NULL); DEVICE_INIT_CONFIG_DEFINE(_uart_stellaris_en, "", uart_stellaris_init, NULL);
SYS_DEFINE_DEVICE(_uart_stellaris_en, NULL, PRIMARY, SYS_DEFINE_DEVICE(_uart_stellaris_en, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE); CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -107,7 +107,7 @@ static int init_cache(struct device *unused)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(cache, "", init_cache, NULL); DEVICE_INIT_CONFIG_DEFINE(cache, "", init_cache, NULL);
SYS_DEFINE_DEVICE(cache, NULL, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); SYS_DEFINE_DEVICE(cache, NULL, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_CLFLUSH_DETECT || CONFIG_CACHE_LINE_SIZE_DETECT */ #endif /* CONFIG_CLFLUSH_DETECT || CONFIG_CACHE_LINE_SIZE_DETECT */

View file

@ -62,11 +62,11 @@ static int quark_d2000_init(struct device *arg)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(quark_d2000_0, "", quark_d2000_init, NULL); DEVICE_INIT_CONFIG_DEFINE(quark_d2000_0, "", quark_d2000_init, NULL);
SYS_DEFINE_DEVICE(quark_d2000_0, NULL, PRIMARY, SYS_DEFINE_DEVICE(quark_d2000_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#ifdef CONFIG_MVIC #ifdef CONFIG_MVIC
DECLARE_DEVICE_INIT_CONFIG(mvic_0, "", _mvic_init, NULL); DEVICE_INIT_CONFIG_DEFINE(mvic_0, "", _mvic_init, NULL);
SYS_DEFINE_DEVICE(mvic_0, NULL, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); SYS_DEFINE_DEVICE(mvic_0, NULL, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_IOAPIC */ #endif /* CONFIG_IOAPIC */

View file

@ -86,7 +86,7 @@ static int arc_init(struct device *arg)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(quark_se_ss_0, "", arc_init, NULL); DEVICE_INIT_CONFIG_DEFINE(quark_se_ss_0, "", arc_init, NULL);
SYS_DEFINE_DEVICE(quark_se_ss_0, NULL, SECONDARY, SYS_DEFINE_DEVICE(quark_se_ss_0, NULL, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
@ -110,7 +110,7 @@ static int platform_uart_init(struct device *arg)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(platform_uart_init, "", platform_uart_init, NULL); DEVICE_INIT_CONFIG_DEFINE(platform_uart_init, "", platform_uart_init, NULL);
SYS_DEFINE_DEVICE(platform_uart_init, NULL, PRIMARY, SYS_DEFINE_DEVICE(platform_uart_init, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -38,7 +38,7 @@ static int x86_quark_se_ipm_init(void)
static struct quark_se_ipm_controller_config_info ipm_controller_config = { static struct quark_se_ipm_controller_config_info ipm_controller_config = {
.controller_init = x86_quark_se_ipm_init .controller_init = x86_quark_se_ipm_init
}; };
DECLARE_DEVICE_INIT_CONFIG(quark_se_ipm, "", quark_se_ipm_controller_initialize, DEVICE_INIT_CONFIG_DEFINE(quark_se_ipm, "", quark_se_ipm_controller_initialize,
&ipm_controller_config); &ipm_controller_config);
SYS_DEFINE_DEVICE(quark_se_ipm, NULL, PRIMARY, SYS_DEFINE_DEVICE(quark_se_ipm, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE); CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
@ -64,7 +64,7 @@ struct ipm_console_receiver_config_info quark_se_ipm_receiver_config = {
.flags = IPM_CONSOLE_PRINTK .flags = IPM_CONSOLE_PRINTK
}; };
struct ipm_console_receiver_runtime_data quark_se_ipm_receiver_driver_data; struct ipm_console_receiver_runtime_data quark_se_ipm_receiver_driver_data;
DECLARE_DEVICE_INIT_CONFIG(ipm_console0, "ipm_console0", DEVICE_INIT_CONFIG_DEFINE(ipm_console0, "ipm_console0",
ipm_console_receiver_init, ipm_console_receiver_init,
&quark_se_ipm_receiver_config); &quark_se_ipm_receiver_config);
SYS_DEFINE_DEVICE(ipm_console0, &quark_se_ipm_receiver_driver_data, SYS_DEFINE_DEVICE(ipm_console0, &quark_se_ipm_receiver_driver_data,

View file

@ -67,7 +67,7 @@ static int pci_legacy_bridge_irq_config(struct device *unused)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(pci_legacy_bridge_0, "", pci_legacy_bridge_irq_config, NULL); DEVICE_INIT_CONFIG_DEFINE(pci_legacy_bridge_0, "", pci_legacy_bridge_irq_config, NULL);
SYS_DEFINE_DEVICE(pci_legacy_bridge_0, NULL, SECONDARY, SYS_DEFINE_DEVICE(pci_legacy_bridge_0, NULL, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE); CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
#endif /* CONFIG_PCI_LEGACY_BRIDGE */ #endif /* CONFIG_PCI_LEGACY_BRIDGE */

View file

@ -362,7 +362,7 @@ struct pinmux_config board_pmux = {
.base_address = CONFIG_PINMUX_BASE, .base_address = CONFIG_PINMUX_BASE,
}; };
DECLARE_DEVICE_INIT_CONFIG(pmux, /* config name */ DEVICE_INIT_CONFIG_DEFINE(pmux, /* config name */
PINMUX_NAME, /* driver name */ PINMUX_NAME, /* driver name */
&pinmux_initialize, /* init function */ &pinmux_initialize, /* init function */
&board_pmux); /* config options*/ &board_pmux); /* config options*/

View file

@ -765,7 +765,7 @@ struct pinmux_config galileo_pmux = {
.base_address = 0x00000000, .base_address = 0x00000000,
}; };
DECLARE_DEVICE_INIT_CONFIG(pmux, DEVICE_INIT_CONFIG_DEFINE(pmux,
PINMUX_NAME, PINMUX_NAME,
&pinmux_galileo_initialize, &pinmux_galileo_initialize,
&galileo_pmux); &galileo_pmux);

View file

@ -288,7 +288,7 @@ struct pinmux_config board_pmux = {
.base_address = CONFIG_PINMUX_BASE, .base_address = CONFIG_PINMUX_BASE,
}; };
DECLARE_DEVICE_INIT_CONFIG(pmux, /* config name */ DEVICE_INIT_CONFIG_DEFINE(pmux, /* config name */
PINMUX_NAME, /* driver name */ PINMUX_NAME, /* driver name */
&pinmux_initialize, /* init function */ &pinmux_initialize, /* init function */
&board_pmux); /* config options*/ &board_pmux); /* config options*/

View file

@ -345,7 +345,7 @@ struct pinmux_config board_pmux = {
.base_address = CONFIG_PINMUX_BASE, .base_address = CONFIG_PINMUX_BASE,
}; };
DECLARE_DEVICE_INIT_CONFIG(pmux, /* config name */ DEVICE_INIT_CONFIG_DEFINE(pmux, /* config name */
PINMUX_NAME, /* driver name */ PINMUX_NAME, /* driver name */
&pinmux_initialize, /* init function */ &pinmux_initialize, /* init function */
&board_pmux); /* config options*/ &board_pmux); /* config options*/

View file

@ -347,7 +347,7 @@ struct pinmux_config board_pmux = {
.base_address = CONFIG_PINMUX_BASE, .base_address = CONFIG_PINMUX_BASE,
}; };
DECLARE_DEVICE_INIT_CONFIG(pmux, /* config name */ DEVICE_INIT_CONFIG_DEFINE(pmux, /* config name */
PINMUX_NAME, /* driver name */ PINMUX_NAME, /* driver name */
&pinmux_initialize, /* init function */ &pinmux_initialize, /* init function */
&board_pmux); /* config options*/ &board_pmux); /* config options*/

View file

@ -529,7 +529,7 @@ struct adc_config adc_config_dev_0 = {
.config_func = adc_config_0_irq, .config_func = adc_config_0_irq,
}; };
DECLARE_DEVICE_INIT_CONFIG(adc_dw_0, /* config name*/ DEVICE_INIT_CONFIG_DEFINE(adc_dw_0, /* config name*/
CONFIG_ADC_DW_NAME_0, /* driver name*/ CONFIG_ADC_DW_NAME_0, /* driver name*/
&adc_dw_init, /* init function*/ &adc_dw_init, /* init function*/
&adc_config_dev_0); /* config options*/ &adc_config_dev_0); /* config options*/

View file

@ -243,7 +243,7 @@ struct ti_adc108s102_config adc108s102_0_config = {
.spi_slave = CONFIG_ADC_TI_ADC108S102_0_SPI_SLAVE, .spi_slave = CONFIG_ADC_TI_ADC108S102_0_SPI_SLAVE,
}; };
DECLARE_DEVICE_INIT_CONFIG(adc108s102_0, CONFIG_ADC_TI_ADC108S102_0_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(adc108s102_0, CONFIG_ADC_TI_ADC108S102_0_DRV_NAME,
ti_adc108s102_init, &adc108s102_0_config); ti_adc108s102_init, &adc108s102_0_config);
SYS_DEFINE_DEVICE(adc108s102_0, &adc108s102_0_data, SECONDARY, SYS_DEFINE_DEVICE(adc108s102_0, &adc108s102_0_data, SECONDARY,

View file

@ -201,7 +201,7 @@ struct dw_aio_cmp_dev_cfg_t dw_aio_cmp_dev_config = {
.config_func = dw_aio_cmp_config, .config_func = dw_aio_cmp_config,
}; };
DECLARE_DEVICE_INIT_CONFIG(dw_aio_cmp, DEVICE_INIT_CONFIG_DEFINE(dw_aio_cmp,
AIO_DW_CMP_DRV_NAME, AIO_DW_CMP_DRV_NAME,
&dw_aio_cmp_init, &dw_aio_cmp_init,
&dw_aio_cmp_dev_config); &dw_aio_cmp_dev_config);

View file

@ -259,6 +259,6 @@ static int _bt_uart_init(struct device *unused)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(bt_uart, "", _bt_uart_init, NULL); DEVICE_INIT_CONFIG_DEFINE(bt_uart, "", _bt_uart_init, NULL);
SYS_DEFINE_DEVICE(bt_uart, NULL, NANOKERNEL, SYS_DEFINE_DEVICE(bt_uart, NULL, NANOKERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE); CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -790,6 +790,6 @@ static int _bt_uart_init(struct device *unused)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(bt_uart, "", _bt_uart_init, NULL); DEVICE_INIT_CONFIG_DEFINE(bt_uart, "", _bt_uart_init, NULL);
SYS_DEFINE_DEVICE(bt_uart, NULL, NANOKERNEL, SYS_DEFINE_DEVICE(bt_uart, NULL, NANOKERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE); CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -101,7 +101,7 @@ struct quark_se_clock_control_config clock_quark_se_peripheral_config = {
.base_address = CLOCK_PERIPHERAL_BASE_ADDR .base_address = CLOCK_PERIPHERAL_BASE_ADDR
}; };
DECLARE_DEVICE_INIT_CONFIG(clock_quark_se_peripheral, DEVICE_INIT_CONFIG_DEFINE(clock_quark_se_peripheral,
CONFIG_CLOCK_CONTROL_QUARK_SE_PERIPHERAL_DRV_NAME, CONFIG_CLOCK_CONTROL_QUARK_SE_PERIPHERAL_DRV_NAME,
&quark_se_clock_control_init, &quark_se_clock_control_init,
&clock_quark_se_peripheral_config); &clock_quark_se_peripheral_config);
@ -116,7 +116,7 @@ struct quark_se_clock_control_config clock_quark_se_external_config = {
.base_address = CLOCK_EXTERNAL_BASE_ADDR .base_address = CLOCK_EXTERNAL_BASE_ADDR
}; };
DECLARE_DEVICE_INIT_CONFIG(clock_quark_se_external, DEVICE_INIT_CONFIG_DEFINE(clock_quark_se_external,
CONFIG_CLOCK_CONTROL_QUARK_SE_EXTERNAL_DRV_NAME, CONFIG_CLOCK_CONTROL_QUARK_SE_EXTERNAL_DRV_NAME,
&quark_se_clock_control_init, &quark_se_clock_control_init,
&clock_quark_se_external_config); &clock_quark_se_external_config);
@ -131,7 +131,7 @@ struct quark_se_clock_control_config clock_quark_se_sensor_config = {
.base_address = CLOCK_SENSOR_BASE_ADDR .base_address = CLOCK_SENSOR_BASE_ADDR
}; };
DECLARE_DEVICE_INIT_CONFIG(clock_quark_se_sensor, DEVICE_INIT_CONFIG_DEFINE(clock_quark_se_sensor,
CONFIG_CLOCK_CONTROL_QUARK_SE_SENSOR_DRV_NAME, CONFIG_CLOCK_CONTROL_QUARK_SE_SENSOR_DRV_NAME,
&quark_se_clock_control_init, &quark_se_clock_control_init,
&clock_quark_se_sensor_config); &clock_quark_se_sensor_config);

View file

@ -45,6 +45,6 @@ static int ram_console_init(struct device *d)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(ram_console, "", ram_console_init, NULL); DEVICE_INIT_CONFIG_DEFINE(ram_console, "", ram_console_init, NULL);
SYS_DEFINE_DEVICE(ram_console, NULL, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); SYS_DEFINE_DEVICE(ram_console, NULL, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -429,7 +429,7 @@ static int uart_console_init(struct device *arg)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(uart_console, "", uart_console_init, NULL); DEVICE_INIT_CONFIG_DEFINE(uart_console, "", uart_console_init, NULL);
/* UART consloe initializes after the UART device itself */ /* UART consloe initializes after the UART device itself */
#if defined(CONFIG_EARLY_CONSOLE) #if defined(CONFIG_EARLY_CONSOLE)

View file

@ -303,7 +303,7 @@ static struct eth_config eth_config_0 = {
static struct eth_runtime eth_0_runtime; static struct eth_runtime eth_0_runtime;
DECLARE_DEVICE_INIT_CONFIG(eth_dw_0, CONFIG_ETH_DW_0_NAME, DEVICE_INIT_CONFIG_DEFINE(eth_dw_0, CONFIG_ETH_DW_0_NAME,
eth_initialize, &eth_config_0); eth_initialize, &eth_config_0);
SYS_DEFINE_DEVICE(eth_dw_0, &eth_0_runtime, NANOKERNEL, SYS_DEFINE_DEVICE(eth_dw_0, &eth_0_runtime, NANOKERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE); CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -448,7 +448,7 @@ struct gpio_dw_config gpio_config_0 = {
struct gpio_dw_runtime gpio_0_runtime; struct gpio_dw_runtime gpio_0_runtime;
DECLARE_DEVICE_INIT_CONFIG(gpio_dw_0, CONFIG_GPIO_DW_0_NAME, DEVICE_INIT_CONFIG_DEFINE(gpio_dw_0, CONFIG_GPIO_DW_0_NAME,
gpio_dw_initialize, &gpio_config_0); gpio_dw_initialize, &gpio_config_0);
SYS_DEFINE_DEVICE(gpio_dw_0, &gpio_0_runtime, SECONDARY, SYS_DEFINE_DEVICE(gpio_dw_0, &gpio_0_runtime, SECONDARY,
CONFIG_GPIO_DW_INIT_PRIORITY); CONFIG_GPIO_DW_INIT_PRIORITY);
@ -523,7 +523,7 @@ struct gpio_dw_config gpio_dw_config_1 = {
struct gpio_dw_runtime gpio_1_runtime; struct gpio_dw_runtime gpio_1_runtime;
DECLARE_DEVICE_INIT_CONFIG(gpio_dw_1, CONFIG_GPIO_DW_1_NAME, DEVICE_INIT_CONFIG_DEFINE(gpio_dw_1, CONFIG_GPIO_DW_1_NAME,
gpio_dw_initialize, &gpio_dw_config_1); gpio_dw_initialize, &gpio_dw_config_1);
SYS_DEFINE_DEVICE(gpio_dw_1, &gpio_1_runtime, SECONDARY, SYS_DEFINE_DEVICE(gpio_dw_1, &gpio_1_runtime, SECONDARY,

View file

@ -338,7 +338,7 @@ static struct gpio_mmio_config gpio_mmio_0_cfg = {
#endif #endif
}; };
DECLARE_DEVICE_INIT_CONFIG(gpio_mmio_0, DEVICE_INIT_CONFIG_DEFINE(gpio_mmio_0,
CONFIG_GPIO_MMIO_0_DEV_NAME, CONFIG_GPIO_MMIO_0_DEV_NAME,
gpio_mmio_init, gpio_mmio_init,
&gpio_mmio_0_cfg); &gpio_mmio_0_cfg);
@ -371,7 +371,7 @@ static struct gpio_mmio_config gpio_mmio_1_cfg = {
#endif #endif
}; };
DECLARE_DEVICE_INIT_CONFIG(gpio_mmio_1, DEVICE_INIT_CONFIG_DEFINE(gpio_mmio_1,
CONFIG_GPIO_MMIO_1_DEV_NAME, CONFIG_GPIO_MMIO_1_DEV_NAME,
gpio_mmio_init, gpio_mmio_init,
&gpio_mmio_1_cfg); &gpio_mmio_1_cfg);

View file

@ -617,7 +617,7 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_0_drvdata = {
.reg_cache.pud_sel = { .all = 0xFFFF }, .reg_cache.pud_sel = { .all = 0xFFFF },
}; };
DECLARE_DEVICE_INIT_CONFIG(gpio_pcal9535a_0, DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_0,
CONFIG_GPIO_PCAL9535A_0_DEV_NAME, CONFIG_GPIO_PCAL9535A_0_DEV_NAME,
gpio_pcal9535a_init, &gpio_pcal9535a_0_cfg); gpio_pcal9535a_init, &gpio_pcal9535a_0_cfg);
@ -646,7 +646,7 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_1_drvdata = {
.reg_cache.pud_sel = { .all = 0xFFFF }, .reg_cache.pud_sel = { .all = 0xFFFF },
}; };
DECLARE_DEVICE_INIT_CONFIG(gpio_pcal9535a_1, DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_1,
CONFIG_GPIO_PCAL9535A_1_DEV_NAME, CONFIG_GPIO_PCAL9535A_1_DEV_NAME,
gpio_pcal9535a_init, &gpio_pcal9535a_1_cfg); gpio_pcal9535a_init, &gpio_pcal9535a_1_cfg);
@ -675,7 +675,7 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_2_drvdata = {
.reg_cache.pud_sel = { .all = 0xFFFF }, .reg_cache.pud_sel = { .all = 0xFFFF },
}; };
DECLARE_DEVICE_INIT_CONFIG(gpio_pcal9535a_2, DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_2,
CONFIG_GPIO_PCAL9535A_2_DEV_NAME, CONFIG_GPIO_PCAL9535A_2_DEV_NAME,
gpio_pcal9535a_init, &gpio_pcal9535a_2_cfg); gpio_pcal9535a_init, &gpio_pcal9535a_2_cfg);
@ -704,7 +704,7 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_3_drvdata = {
.reg_cache.pud_sel = { .all = 0xFFFF }, .reg_cache.pud_sel = { .all = 0xFFFF },
}; };
DECLARE_DEVICE_INIT_CONFIG(gpio_pcal9535a_3, DEVICE_INIT_CONFIG_DEFINE(gpio_pcal9535a_3,
CONFIG_GPIO_PCAL9535A_3_DEV_NAME, CONFIG_GPIO_PCAL9535A_3_DEV_NAME,
gpio_pcal9535a_init, &gpio_pcal9535a_3_cfg); gpio_pcal9535a_init, &gpio_pcal9535a_3_cfg);

View file

@ -277,7 +277,7 @@ static struct gpio_qmsi_config gpio_0_config = {
static struct gpio_qmsi_runtime gpio_0_runtime; static struct gpio_qmsi_runtime gpio_0_runtime;
DECLARE_DEVICE_INIT_CONFIG(gpio_0, CONFIG_GPIO_QMSI_0_NAME, DEVICE_INIT_CONFIG_DEFINE(gpio_0, CONFIG_GPIO_QMSI_0_NAME,
&gpio_qmsi_init, &gpio_0_config); &gpio_qmsi_init, &gpio_0_config);
SYS_DEFINE_DEVICE(gpio_0, &gpio_0_runtime, SECONDARY, SYS_DEFINE_DEVICE(gpio_0, &gpio_0_runtime, SECONDARY,

View file

@ -359,7 +359,7 @@ struct gpio_sch_config gpio_sch_0_config = {
struct gpio_sch_data gpio_data_0; struct gpio_sch_data gpio_data_0;
DECLARE_DEVICE_INIT_CONFIG(gpio_0, CONFIG_GPIO_SCH_0_DEV_NAME, DEVICE_INIT_CONFIG_DEFINE(gpio_0, CONFIG_GPIO_SCH_0_DEV_NAME,
gpio_sch_init, &gpio_sch_0_config); gpio_sch_init, &gpio_sch_0_config);
SYS_DEFINE_DEVICE(gpio_0, &gpio_data_0, SECONDARY, SYS_DEFINE_DEVICE(gpio_0, &gpio_data_0, SECONDARY,
CONFIG_GPIO_SCH_INIT_PRIORITY); CONFIG_GPIO_SCH_INIT_PRIORITY);
@ -374,7 +374,7 @@ struct gpio_sch_config gpio_sch_1_config = {
struct gpio_sch_data gpio_data_1; struct gpio_sch_data gpio_data_1;
DECLARE_DEVICE_INIT_CONFIG(gpio_1, CONFIG_GPIO_SCH_1_DEV_NAME, DEVICE_INIT_CONFIG_DEFINE(gpio_1, CONFIG_GPIO_SCH_1_DEV_NAME,
gpio_sch_init, &gpio_sch_1_config); gpio_sch_init, &gpio_sch_1_config);
SYS_DEFINE_DEVICE(gpio_1, &gpio_data_1, SECONDARY, SYS_DEFINE_DEVICE(gpio_1, &gpio_data_1, SECONDARY,
CONFIG_GPIO_SCH_INIT_PRIORITY); CONFIG_GPIO_SCH_INIT_PRIORITY);

View file

@ -354,7 +354,7 @@ struct glcd_data grove_lcd_driver = {
.function = 0, .function = 0,
}; };
DECLARE_DEVICE_INIT_CONFIG(grove_lcd, DEVICE_INIT_CONFIG_DEFINE(grove_lcd,
GROVE_LCD_NAME, GROVE_LCD_NAME,
glcd_initialize, glcd_initialize,
&grove_lcd_config); &grove_lcd_config);

View file

@ -773,7 +773,7 @@ struct i2c_dw_dev_config i2c_0_runtime = {
.app_config.raw = CONFIG_I2C_DW_0_DEFAULT_CFG, .app_config.raw = CONFIG_I2C_DW_0_DEFAULT_CFG,
}; };
DECLARE_DEVICE_INIT_CONFIG(i2c_0, DEVICE_INIT_CONFIG_DEFINE(i2c_0,
CONFIG_I2C_DW_0_NAME, CONFIG_I2C_DW_0_NAME,
&i2c_dw_initialize, &i2c_dw_initialize,
&i2c_config_dw_0); &i2c_config_dw_0);
@ -826,7 +826,7 @@ struct i2c_dw_dev_config i2c_1_runtime = {
.app_config.raw = CONFIG_I2C_DW_1_DEFAULT_CFG, .app_config.raw = CONFIG_I2C_DW_1_DEFAULT_CFG,
}; };
DECLARE_DEVICE_INIT_CONFIG(i2c_1, DEVICE_INIT_CONFIG_DEFINE(i2c_1,
CONFIG_I2C_DW_1_NAME, CONFIG_I2C_DW_1_NAME,
&i2c_dw_initialize, &i2c_dw_initialize,
&i2c_config_dw_1); &i2c_config_dw_1);

View file

@ -115,7 +115,7 @@ static int i2c_qmsi_init(struct device *dev)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(i2c_qmsi_0, CONFIG_I2C_QMSI_0_NAME, i2c_qmsi_init, DEVICE_INIT_CONFIG_DEFINE(i2c_qmsi_0, CONFIG_I2C_QMSI_0_NAME, i2c_qmsi_init,
NULL); NULL);
SYS_DEFINE_DEVICE(i2c_qmsi_0, 0, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); SYS_DEFINE_DEVICE(i2c_qmsi_0, 0, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -657,7 +657,7 @@ struct i2c_qse_ss_dev_config i2c_ss_0_runtime = {
.app_config.raw = CONFIG_I2C_QUARK_SE_SS_0_DEFAULT_CFG, .app_config.raw = CONFIG_I2C_QUARK_SE_SS_0_DEFAULT_CFG,
}; };
DECLARE_DEVICE_INIT_CONFIG(i2c_ss_0, DEVICE_INIT_CONFIG_DEFINE(i2c_ss_0,
CONFIG_I2C_QUARK_SE_SS_0_NAME, CONFIG_I2C_QUARK_SE_SS_0_NAME,
&i2c_qse_ss_initialize, &i2c_qse_ss_initialize,
&i2c_config_ss_0); &i2c_config_ss_0);
@ -722,7 +722,7 @@ struct i2c_qse_ss_dev_config i2c_qse_ss_1_runtime = {
.app_config.raw = CONFIG_I2C_QUARK_SE_SS_1_DEFAULT_CFG, .app_config.raw = CONFIG_I2C_QUARK_SE_SS_1_DEFAULT_CFG,
}; };
DECLARE_DEVICE_INIT_CONFIG(i2c_ss_1, DEVICE_INIT_CONFIG_DEFINE(i2c_ss_1,
CONFIG_I2C_QUARK_SE_SS_1_NAME, CONFIG_I2C_QUARK_SE_SS_1_NAME,
&i2c_qse_ss_initialize, &i2c_qse_ss_initialize,
&i2c_config_ss_1); &i2c_config_ss_1);

View file

@ -62,6 +62,6 @@ int _i8259_init(struct device *unused)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(pic_0, "", _i8259_init, NULL); DEVICE_INIT_CONFIG_DEFINE(pic_0, "", _i8259_init, NULL);
SYS_DEFINE_DEVICE(pic_0, NULL, PRIMARY, SYS_DEFINE_DEVICE(pic_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -314,6 +314,6 @@ static void _IoApicRedUpdateLo(unsigned int irq,
ioApicRedSetLo(irq, (ioApicRedGetLo(irq) & ~mask) | (value & mask)); ioApicRedSetLo(irq, (ioApicRedGetLo(irq) & ~mask) | (value & mask));
} }
DECLARE_DEVICE_INIT_CONFIG(ioapic_0, "", _ioapic_init, NULL); DEVICE_INIT_CONFIG_DEFINE(ioapic_0, "", _ioapic_init, NULL);
SYS_DEFINE_DEVICE(ioapic_0, NULL, PRIMARY, SYS_DEFINE_DEVICE(ioapic_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -444,7 +444,7 @@ int _loapic_isr_vector_get(void)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(loapic_0, "", _loapic_init, NULL); DEVICE_INIT_CONFIG_DEFINE(loapic_0, "", _loapic_init, NULL);
SYS_DEFINE_DEVICE(loapic_0, NULL, PRIMARY, SYS_DEFINE_DEVICE(loapic_0, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -137,7 +137,7 @@ int quark_se_ipm_controller_initialize(struct device *d);
.direction = dir \ .direction = dir \
}; \ }; \
struct quark_se_ipm_driver_data quark_se_ipm_runtime_##name; \ struct quark_se_ipm_driver_data quark_se_ipm_runtime_##name; \
DECLARE_DEVICE_INIT_CONFIG(name, _STRINGIFY(name), \ DEVICE_INIT_CONFIG_DEFINE(name, _STRINGIFY(name), \
quark_se_ipm_initialize, \ quark_se_ipm_initialize, \
&quark_se_ipm_config_##name); \ &quark_se_ipm_config_##name); \
SYS_DEFINE_DEVICE(name, &quark_se_ipm_runtime_##name, SECONDARY, \ SYS_DEFINE_DEVICE(name, &quark_se_ipm_runtime_##name, SECONDARY, \

View file

@ -246,7 +246,7 @@ static struct pwm_dw_config pwm_dw_cfg = {
.num_ports = CONFIG_PWM_DW_NUM_PORTS, .num_ports = CONFIG_PWM_DW_NUM_PORTS,
}; };
DECLARE_DEVICE_INIT_CONFIG(pwm_dw_0, DEVICE_INIT_CONFIG_DEFINE(pwm_dw_0,
CONFIG_PWM_DW_DEV_NAME, CONFIG_PWM_DW_DEV_NAME,
pwm_dw_init, &pwm_dw_cfg); pwm_dw_init, &pwm_dw_cfg);

View file

@ -230,7 +230,7 @@ static struct pwm_pca9685_config pwm_pca9685_0_cfg = {
static struct pwm_pca9685_drv_data pwm_pca9685_0_drvdata; static struct pwm_pca9685_drv_data pwm_pca9685_0_drvdata;
DECLARE_DEVICE_INIT_CONFIG(pwm_pca9685_0, DEVICE_INIT_CONFIG_DEFINE(pwm_pca9685_0,
CONFIG_PWM_PCA9685_0_DEV_NAME, CONFIG_PWM_PCA9685_0_DEV_NAME,
pwm_pca9685_init, &pwm_pca9685_0_cfg); pwm_pca9685_init, &pwm_pca9685_0_cfg);

View file

@ -200,7 +200,7 @@ struct rtc_dw_dev_config rtc_dev = {
#endif #endif
}; };
DECLARE_DEVICE_INIT_CONFIG(rtc, CONFIG_RTC_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(rtc, CONFIG_RTC_DRV_NAME,
&rtc_dw_init, &rtc_dev); &rtc_dw_init, &rtc_dev);
SYS_DEFINE_DEVICE(rtc, &rtc_runtime, SECONDARY, SYS_DEFINE_DEVICE(rtc, &rtc_runtime, SECONDARY,

View file

@ -92,7 +92,7 @@ static int rtc_qmsi_init(struct device *dev)
return DEV_OK; return DEV_OK;
} }
DECLARE_DEVICE_INIT_CONFIG(rtc, CONFIG_RTC_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(rtc, CONFIG_RTC_DRV_NAME,
&rtc_qmsi_init, NULL); &rtc_qmsi_init, NULL);
SYS_DEFINE_DEVICE(rtc, NULL, SECONDARY, SYS_DEFINE_DEVICE(rtc, NULL, SECONDARY,

View file

@ -259,7 +259,7 @@ static struct uart_sam3_dev_data_t uart_sam3_dev_data_0 = {
.baud_rate = CONFIG_UART_ATMEL_SAM3_BAUD_RATE, .baud_rate = CONFIG_UART_ATMEL_SAM3_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_sam3_0, DEVICE_INIT_CONFIG_DEFINE(uart_sam3_0,
CONFIG_UART_ATMEL_SAM3_NAME, CONFIG_UART_ATMEL_SAM3_NAME,
&uart_sam3_init, &uart_sam3_init,
&uart_sam3_dev_cfg_0); &uart_sam3_dev_cfg_0);

View file

@ -376,7 +376,7 @@ static struct uart_k20_dev_data_t uart_k20_dev_data_0 = {
.baud_rate = CONFIG_UART_K20_PORT_0_BAUD_RATE, .baud_rate = CONFIG_UART_K20_PORT_0_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_k20_0, DEVICE_INIT_CONFIG_DEFINE(uart_k20_0,
CONFIG_UART_K20_PORT_0_NAME, CONFIG_UART_K20_PORT_0_NAME,
&uart_k20_init, &uart_k20_init,
&uart_k20_dev_cfg_0); &uart_k20_dev_cfg_0);
@ -397,7 +397,7 @@ static struct uart_k20_dev_data_t uart_k20_dev_data_1 = {
.baud_rate = CONFIG_UART_K20_PORT_1_BAUD_RATE, .baud_rate = CONFIG_UART_K20_PORT_1_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_k20_1, DEVICE_INIT_CONFIG_DEFINE(uart_k20_1,
CONFIG_UART_K20_PORT_1_NAME, CONFIG_UART_K20_PORT_1_NAME,
&uart_k20_init, &uart_k20_init,
&uart_k20_dev_cfg_1); &uart_k20_dev_cfg_1);
@ -418,7 +418,7 @@ static struct uart_k20_dev_data_t uart_k20_dev_data_2 = {
.baud_rate = CONFIG_UART_K20_PORT_2_BAUD_RATE, .baud_rate = CONFIG_UART_K20_PORT_2_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_k20_2, DEVICE_INIT_CONFIG_DEFINE(uart_k20_2,
CONFIG_UART_K20_PORT_2_NAME, CONFIG_UART_K20_PORT_2_NAME,
&uart_k20_init, &uart_k20_init,
&uart_k20_dev_cfg_2); &uart_k20_dev_cfg_2);
@ -439,7 +439,7 @@ static struct uart_k20_dev_data_t uart_k20_dev_data_3 = {
.baud_rate = CONFIG_UART_K20_PORT_3_BAUD_RATE, .baud_rate = CONFIG_UART_K20_PORT_3_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_k20_3, DEVICE_INIT_CONFIG_DEFINE(uart_k20_3,
CONFIG_UART_K20_PORT_3_NAME, CONFIG_UART_K20_PORT_3_NAME,
&uart_k20_init, &uart_k20_init,
&uart_k20_dev_cfg_3); &uart_k20_dev_cfg_3);
@ -460,7 +460,7 @@ static struct uart_k20_dev_data_t uart_k20_dev_data_4 = {
.baud_rate = CONFIG_UART_K20_PORT_4_BAUD_RATE, .baud_rate = CONFIG_UART_K20_PORT_4_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_k20_4, DEVICE_INIT_CONFIG_DEFINE(uart_k20_4,
CONFIG_UART_K20_PORT_4_NAME, CONFIG_UART_K20_PORT_4_NAME,
&uart_k20_init, &uart_k20_init,
&uart_k20_dev_cfg_4); &uart_k20_dev_cfg_4);

View file

@ -702,7 +702,7 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_0 = {
#endif #endif
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_ns16550_0, DEVICE_INIT_CONFIG_DEFINE(uart_ns16550_0,
CONFIG_UART_NS16550_PORT_0_NAME, CONFIG_UART_NS16550_PORT_0_NAME,
&uart_ns16550_init, &uart_ns16550_init,
&uart_ns16550_dev_cfg_0); &uart_ns16550_dev_cfg_0);
@ -738,7 +738,7 @@ static struct uart_ns16550_dev_data_t uart_ns16550_dev_data_1 = {
#endif #endif
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_ns16550_1, DEVICE_INIT_CONFIG_DEFINE(uart_ns16550_1,
CONFIG_UART_NS16550_PORT_1_NAME, CONFIG_UART_NS16550_PORT_1_NAME,
&uart_ns16550_init, &uart_ns16550_init,
&uart_ns16550_dev_cfg_1); &uart_ns16550_dev_cfg_1);

View file

@ -83,7 +83,7 @@ static struct uart_device_config uart_nsim_dev_cfg_0 = {
.regs = CONFIG_UART_NSIM_PORT_0_BASE_ADDR, .regs = CONFIG_UART_NSIM_PORT_0_BASE_ADDR,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_nsim0, DEVICE_INIT_CONFIG_DEFINE(uart_nsim0,
CONFIG_UART_NSIM_PORT_0_NAME, CONFIG_UART_NSIM_PORT_0_NAME,
&uart_nsim_init, &uart_nsim_init,
&uart_nsim_dev_cfg_0); &uart_nsim_dev_cfg_0);

View file

@ -602,7 +602,7 @@ static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_0 = {
.baud_rate = CONFIG_UART_STELLARIS_PORT_0_BAUD_RATE, .baud_rate = CONFIG_UART_STELLARIS_PORT_0_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_stellaris0, DEVICE_INIT_CONFIG_DEFINE(uart_stellaris0,
CONFIG_UART_STELLARIS_PORT_0_NAME, CONFIG_UART_STELLARIS_PORT_0_NAME,
&uart_stellaris_init, &uart_stellaris_init,
&uart_stellaris_dev_cfg_0); &uart_stellaris_dev_cfg_0);
@ -623,7 +623,7 @@ static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_1 = {
.baud_rate = CONFIG_UART_STELLARIS_PORT_1_BAUD_RATE, .baud_rate = CONFIG_UART_STELLARIS_PORT_1_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_stellaris1, DEVICE_INIT_CONFIG_DEFINE(uart_stellaris1,
CONFIG_UART_STELLARIS_PORT_1_NAME, CONFIG_UART_STELLARIS_PORT_1_NAME,
&uart_stellaris_init, &uart_stellaris_init,
&uart_stellaris_dev_cfg_1); &uart_stellaris_dev_cfg_1);
@ -644,7 +644,7 @@ static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_2 = {
.baud_rate = CONFIG_UART_STELLARIS_PORT_2_BAUD_RATE, .baud_rate = CONFIG_UART_STELLARIS_PORT_2_BAUD_RATE,
}; };
DECLARE_DEVICE_INIT_CONFIG(uart_stellaris2, DEVICE_INIT_CONFIG_DEFINE(uart_stellaris2,
CONFIG_UART_STELLARIS_PORT_2_NAME, CONFIG_UART_STELLARIS_PORT_2_NAME,
&uart_stellaris_init, &uart_stellaris_init,
&uart_stellaris_dev_cfg_2); &uart_stellaris_dev_cfg_2);

View file

@ -144,7 +144,7 @@ struct shared_irq_config shared_irq_config_0 = {
struct shared_irq_runtime shared_irq_0_runtime; struct shared_irq_runtime shared_irq_0_runtime;
DECLARE_DEVICE_INIT_CONFIG(shared_irq_0, CONFIG_SHARED_IRQ_0_NAME, DEVICE_INIT_CONFIG_DEFINE(shared_irq_0, CONFIG_SHARED_IRQ_0_NAME,
shared_irq_initialize, &shared_irq_config_0); shared_irq_initialize, &shared_irq_config_0);
SYS_DEFINE_DEVICE(shared_irq_0, &shared_irq_0_runtime, SECONDARY, SYS_DEFINE_DEVICE(shared_irq_0, &shared_irq_0_runtime, SECONDARY,
CONFIG_SHARED_IRQ_INIT_PRIORITY); CONFIG_SHARED_IRQ_INIT_PRIORITY);
@ -185,7 +185,7 @@ struct shared_irq_config shared_irq_config_1 = {
struct shared_irq_runtime shared_irq_1_runtime; struct shared_irq_runtime shared_irq_1_runtime;
DECLARE_DEVICE_INIT_CONFIG(shared_irq_1, CONFIG_SHARED_IRQ_1_NAME, DEVICE_INIT_CONFIG_DEFINE(shared_irq_1, CONFIG_SHARED_IRQ_1_NAME,
shared_irq_initialize, &shared_irq_config_1); shared_irq_initialize, &shared_irq_config_1);
SYS_DEFINE_DEVICE(shared_irq_1, &shared_irq_1_runtime, SECONDARY, SYS_DEFINE_DEVICE(shared_irq_1, &shared_irq_1_runtime, SECONDARY,
CONFIG_SHARED_IRQ_INIT_PRIORITY); CONFIG_SHARED_IRQ_INIT_PRIORITY);

View file

@ -582,7 +582,7 @@ struct spi_dw_config spi_dw_config_0 = {
.config_func = spi_config_0_irq .config_func = spi_config_0_irq
}; };
DECLARE_DEVICE_INIT_CONFIG(spi_dw_port_0, CONFIG_SPI_DW_PORT_0_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(spi_dw_port_0, CONFIG_SPI_DW_PORT_0_DRV_NAME,
spi_dw_init, &spi_dw_config_0); spi_dw_init, &spi_dw_config_0);
SYS_DEFINE_DEVICE(spi_dw_port_0, &spi_dw_data_port_0, SECONDARY, SYS_DEFINE_DEVICE(spi_dw_port_0, &spi_dw_data_port_0, SECONDARY,
@ -615,7 +615,7 @@ struct spi_dw_config spi_dw_config_1 = {
.config_func = spi_config_1_irq .config_func = spi_config_1_irq
}; };
DECLARE_DEVICE_INIT_CONFIG(spi_dw_port_1, CONFIG_SPI_DW_PORT_1_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(spi_dw_port_1, CONFIG_SPI_DW_PORT_1_DRV_NAME,
spi_dw_init, &spi_dw_config_1); spi_dw_init, &spi_dw_config_1);
SYS_DEFINE_DEVICE(spi_dw_port_1, &spi_dw_data_port_1, SECONDARY, SYS_DEFINE_DEVICE(spi_dw_port_1, &spi_dw_data_port_1, SECONDARY,

View file

@ -467,7 +467,7 @@ struct spi_intel_config spi_intel_config_0 = {
.config_func = spi_config_0_irq .config_func = spi_config_0_irq
}; };
DECLARE_DEVICE_INIT_CONFIG(spi_intel_port_0, CONFIG_SPI_INTEL_PORT_0_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(spi_intel_port_0, CONFIG_SPI_INTEL_PORT_0_DRV_NAME,
spi_intel_init, &spi_intel_config_0); spi_intel_init, &spi_intel_config_0);
/* SPI may use GPIO pin for CS, thus it needs to be initialized after GPIO */ /* SPI may use GPIO pin for CS, thus it needs to be initialized after GPIO */
@ -506,7 +506,7 @@ struct spi_intel_config spi_intel_config_1 = {
.config_func = spi_config_1_irq .config_func = spi_config_1_irq
}; };
DECLARE_DEVICE_INIT_CONFIG(spi_intel_port_1, CONFIG_SPI_INTEL_PORT_1_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(spi_intel_port_1, CONFIG_SPI_INTEL_PORT_1_DRV_NAME,
spi_intel_init, &spi_intel_config_1); spi_intel_init, &spi_intel_config_1);
/* SPI may use GPIO pin for CS, thus it needs to be initialized after GPIO */ /* SPI may use GPIO pin for CS, thus it needs to be initialized after GPIO */

View file

@ -32,7 +32,7 @@
#include <init.h> #include <init.h>
#include <drivers/system_timer.h> #include <drivers/system_timer.h>
DECLARE_DEVICE_INIT_CONFIG(sys_clock, "sys_clock", DEVICE_INIT_CONFIG_DEFINE(sys_clock, "sys_clock",
_sys_clock_driver_init, NULL); _sys_clock_driver_init, NULL);
SYS_DEFINE_DEVICE(sys_clock, NULL, NANOKERNEL, SYS_DEFINE_DEVICE(sys_clock, NULL, NANOKERNEL,

View file

@ -160,7 +160,7 @@ struct wdt_dw_dev_config wdt_dev = {
#endif #endif
}; };
DECLARE_DEVICE_INIT_CONFIG(wdt, CONFIG_WDT_DW_DRV_NAME, DEVICE_INIT_CONFIG_DEFINE(wdt, CONFIG_WDT_DW_DRV_NAME,
&wdt_dw_init, &wdt_dev); &wdt_dw_init, &wdt_dev);
SYS_DEFINE_DEVICE(wdt, &wdt_runtime, SECONDARY, SYS_DEFINE_DEVICE(wdt, &wdt_runtime, SECONDARY,

View file

@ -98,7 +98,7 @@ static int init(struct device *dev)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(wdt, CONFIG_WDT_QMSI_DRV_NAME, init, 0); DEVICE_INIT_CONFIG_DEFINE(wdt, CONFIG_WDT_QMSI_DRV_NAME, init, 0);
SYS_DEFINE_DEVICE(wdt, 0, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); SYS_DEFINE_DEVICE(wdt, 0, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -22,7 +22,7 @@
extern "C" { extern "C" {
#endif #endif
/** @def DECLARE_DEVICE_INIT_CONFIG /** @def DEVICE_INIT_CONFIG_DEFINE
* *
* @brief Define an config object * @brief Define an config object
* *
@ -42,7 +42,7 @@ extern "C" {
* *
* @sa __define_initconfig() * @sa __define_initconfig()
*/ */
#define DECLARE_DEVICE_INIT_CONFIG(cfg_name, drv_name, init_fn, config) \ #define DEVICE_INIT_CONFIG_DEFINE(cfg_name, drv_name, init_fn, config) \
static struct device_config config_##cfg_name __used \ static struct device_config config_##cfg_name __used \
__attribute__((__section__(".devconfig.init"))) = { \ __attribute__((__section__(".devconfig.init"))) = { \
.name = drv_name, .init = (init_fn), \ .name = drv_name, .init = (init_fn), \

View file

@ -49,7 +49,7 @@ extern "C" {
* @param name Device name. * @param name Device name.
* *
* @param data Pointer to the device's configuration data. * @param data Pointer to the device's configuration data.
* @sa DECLARE_DEVICE_INIT_CONFIG() * @sa DEVICE_INIT_CONFIG_DEFINE()
* *
* @param level The initialization level at which configuration occurs. * @param level The initialization level at which configuration occurs.
* Must be one of the following symbols, which are listed in the order * Must be one of the following symbols, which are listed in the order

View file

@ -53,7 +53,7 @@ static int _sys_k_event_logger_init(struct device *arg)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(kernel_event_logger_0, "", DEVICE_INIT_CONFIG_DEFINE(kernel_event_logger_0, "",
_sys_k_event_logger_init, NULL); _sys_k_event_logger_init, NULL);
SYS_DEFINE_DEVICE(kernel_event_logger_0, NULL, NANOKERNEL, SYS_DEFINE_DEVICE(kernel_event_logger_0, NULL, NANOKERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -290,6 +290,6 @@ static int init(struct device *unused)
return 0; return 0;
} }
DECLARE_DEVICE_INIT_CONFIG(mem_safe, "", init, NULL); DEVICE_INIT_CONFIG_DEFINE(mem_safe, "", init, NULL);
SYS_DEFINE_DEVICE(mem_safe, NULL, PRIMARY, SYS_DEFINE_DEVICE(mem_safe, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -40,7 +40,7 @@
/* Set up the dummy IPM driver */ /* Set up the dummy IPM driver */
struct ipm_dummy_driver_data ipm_dummy0_driver_data; struct ipm_dummy_driver_data ipm_dummy0_driver_data;
DECLARE_DEVICE_INIT_CONFIG(ipm_dummy0, "ipm_dummy0", ipm_dummy_init, NULL); DEVICE_INIT_CONFIG_DEFINE(ipm_dummy0, "ipm_dummy0", ipm_dummy_init, NULL);
SYS_DEFINE_DEVICE(ipm_dummy0, &ipm_dummy0_driver_data, SECONDARY, SYS_DEFINE_DEVICE(ipm_dummy0, &ipm_dummy0_driver_data, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
@ -51,7 +51,7 @@ struct ipm_console_sender_config_info sender_config = {
.bind_to = "ipm_dummy0", .bind_to = "ipm_dummy0",
.flags = SOURCE .flags = SOURCE
}; };
DECLARE_DEVICE_INIT_CONFIG(ipm_console_send0, "ipm_send0", DEVICE_INIT_CONFIG_DEFINE(ipm_console_send0, "ipm_send0",
ipm_console_sender_init, &sender_config); ipm_console_sender_init, &sender_config);
SYS_DEFINE_DEVICE(ipm_console_send0, NULL, NANOKERNEL, SYS_DEFINE_DEVICE(ipm_console_send0, NULL, NANOKERNEL,
INIT_PRIO_IPM_SEND); INIT_PRIO_IPM_SEND);
@ -78,7 +78,7 @@ struct ipm_console_receiver_config_info receiver_config = {
}; };
struct ipm_console_receiver_runtime_data receiver_data; struct ipm_console_receiver_runtime_data receiver_data;
DECLARE_DEVICE_INIT_CONFIG(ipm_console_recv0, "ipm_recv0", DEVICE_INIT_CONFIG_DEFINE(ipm_console_recv0, "ipm_recv0",
ipm_console_receiver_init, &receiver_config); ipm_console_receiver_init, &receiver_config);
SYS_DEFINE_DEVICE(ipm_console_recv0, &receiver_data, NANOKERNEL, SYS_DEFINE_DEVICE(ipm_console_recv0, &receiver_data, NANOKERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);