Skip to content

Commit d9cbd4a

Browse files
bjarki-andreasenkartben
authored andcommitted
drivers: gpio: smartbond: fix PM_DEVICE_DEFINE usage
The gpio_smartbond driver incorrectly uses the static PM_DEVICE_DEFINE() and PM_DEVICE_GET() macros when creating a driver instance from a devicetree instance number. Update to use PM_DEVICE_DT_INST_DEFINE() and PM_DEVICE_DT_INST_GET() macros. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 3060ee2 commit d9cbd4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio_smartbond.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ static DEVICE_API(gpio, gpio_smartbond_drv_api_funcs) = {
430430
return 0; \
431431
} \
432432
\
433-
PM_DEVICE_DEFINE(id, gpio_smartbond_pm_action); \
433+
PM_DEVICE_DT_INST_DEFINE(id, gpio_smartbond_pm_action); \
434434
DEVICE_DT_INST_DEFINE(id, gpio_smartbond_init_##id, \
435-
PM_DEVICE_GET(id), \
435+
PM_DEVICE_DT_INST_GET(id), \
436436
&gpio_smartbond_data_##id, \
437437
&gpio_smartbond_config_##id, \
438438
PRE_KERNEL_1, \

0 commit comments

Comments
 (0)