bluetooth: Convert to new DT_INST macros
Convert older DT_INST_ macro use the new include/devicetree.h DT_INST macro APIs. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
12ca04b31f
commit
3a59f87ba9
3 changed files with 3 additions and 3 deletions
|
@ -5378,7 +5378,7 @@ static void k32src_wait(void)
|
|||
done = true;
|
||||
|
||||
struct device *clock = device_get_binding(
|
||||
DT_INST_0_NORDIC_NRF_CLOCK_LABEL);
|
||||
DT_LABEL(DT_INST(0, nordic_nrf_clock)));
|
||||
|
||||
LL_ASSERT(clock);
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ int ll_init(struct k_sem *sem_rx)
|
|||
|
||||
sem_recv = sem_rx;
|
||||
|
||||
clk = device_get_binding(DT_INST_0_NORDIC_NRF_CLOCK_LABEL);
|
||||
clk = device_get_binding(DT_LABEL(DT_INST(0, nordic_nrf_clock)));
|
||||
if (!clk) {
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ int lll_clock_init(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
dev = device_get_binding(DT_INST_0_NORDIC_NRF_CLOCK_LABEL);
|
||||
dev = device_get_binding(DT_LABEL(DT_INST(0, nordic_nrf_clock)));
|
||||
if (!dev) {
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue