drivers: ipm: Convert drivers to new DT device macros
Convert ipm drivers from: DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE DEVICE_GET -> DEVICE_DT_INST_GET DEVICE_DECLARE -> DEVICE_DT_INST_DECLARE Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
5951cbda65
commit
8893ad55db
6 changed files with 22 additions and 19 deletions
|
@ -214,8 +214,9 @@ static const struct imx_mu_config imx_mu_b_config = {
|
|||
|
||||
static struct imx_mu_data imx_mu_b_data;
|
||||
|
||||
DEVICE_AND_API_INIT(mu_b, DT_INST_LABEL(0),
|
||||
DEVICE_DT_INST_DEFINE(0,
|
||||
&imx_mu_init,
|
||||
device_pm_control_nop,
|
||||
&imx_mu_b_data, &imx_mu_b_config,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&imx_mu_driver_api);
|
||||
|
@ -224,7 +225,7 @@ static void imx_mu_config_func_b(const struct device *dev)
|
|||
{
|
||||
IRQ_CONNECT(DT_INST_IRQN(0),
|
||||
DT_INST_IRQ(0, priority),
|
||||
imx_mu_isr, DEVICE_GET(mu_b), 0);
|
||||
imx_mu_isr, DEVICE_DT_INST_GET(0), 0);
|
||||
|
||||
irq_enable(DT_INST_IRQN(0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue