Skip to content

Commit

Permalink
drivers: can: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE
Browse files Browse the repository at this point in the history
Convert driver(s) to DEVICE_DEFINE instead of DEVICE_AND_API_INIT
so we can deprecate DEVICE_AND_API_INIT in the future.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Dec 18, 2020
1 parent a6800aa commit 5ab2e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/can/can_loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ static int can_loopback_init(const struct device *dev)

static struct can_loopback_data can_loopback_dev_data_1;

DEVICE_AND_API_INIT(can_loopback_1, CONFIG_CAN_LOOPBACK_DEV_NAME,
&can_loopback_init,
DEVICE_DEFINE(can_loopback_1, CONFIG_CAN_LOOPBACK_DEV_NAME,
&can_loopback_init, device_pm_control_nop,
&can_loopback_dev_data_1, NULL,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&can_api_funcs);
Expand Down

0 comments on commit 5ab2e4a

Please sign in to comment.