drivers: serial: sifive: use DT_INST_LABEL macro
Replace a few cases that should have been DT_INST_LABEL instead. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
f79699108a
commit
74d459fb66
1 changed files with 2 additions and 2 deletions
|
@ -393,7 +393,7 @@ static const struct uart_sifive_device_config uart_sifive_dev_cfg_0 = {
|
|||
#endif
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(uart_sifive_0, DT_INST_PROP(0, label),
|
||||
DEVICE_AND_API_INIT(uart_sifive_0, DT_INST_LABEL(0),
|
||||
uart_sifive_init,
|
||||
&uart_sifive_data_0, &uart_sifive_dev_cfg_0,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
|
@ -432,7 +432,7 @@ static const struct uart_sifive_device_config uart_sifive_dev_cfg_1 = {
|
|||
#endif
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(uart_sifive_1, DT_INST_PROP(1, label),
|
||||
DEVICE_AND_API_INIT(uart_sifive_1, DT_INST_LABEL(1),
|
||||
uart_sifive_init,
|
||||
&uart_sifive_data_1, &uart_sifive_dev_cfg_1,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue