Skip to content

Commit 91e16f1

Browse files
gmarullnashif
authored andcommitted
device: add missing comma to Z_DEVICE_INIT
When PM_DEVICE is enabled, pm_base needs to be expanded with a trailing comma. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 9b9d455 commit 91e16f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ device_get_dt_nodelabels(const struct device *dev)
10191019
.state = (state_), \
10201020
.data = (data_), \
10211021
IF_ENABLED(CONFIG_DEVICE_DEPS, (.deps = (deps_),)) /**/ \
1022-
IF_ENABLED(CONFIG_PM_DEVICE, ({ .pm_base = (pm_),})) /**/ \
1022+
IF_ENABLED(CONFIG_PM_DEVICE, ({ .pm_base = (pm_),},)) /**/ \
10231023
IF_ENABLED(CONFIG_DEVICE_DT_METADATA, \
10241024
(.dt_meta = &Z_DEVICE_DT_METADATA_NAME_GET(dev_id_),)) \
10251025
}

0 commit comments

Comments
 (0)