device.h: fix unbalanced initializer: ({ .pm_base = (pm_),)}

Close parentheses and braces in the reverse order they are opened.

Fixes commit f91d4731af ("pm: use braces for .pm_base inside anonymous
union initializer")

I have no idea how no compiler caught this!?

I tested very carefully with two different gcc versions and one clang
version and generated binaries are strictly identical before and after
this commit. Fix the code anyway because C macros are painful enough to
debug already, so no need to add more confusion.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2024-03-19 04:01:20 +00:00 committed by Anas Nashif
parent 003f145314
commit bfa5d02125
1 changed files with 1 additions and 1 deletions

View File

@ -934,7 +934,7 @@ __syscall int device_init(const struct device *dev);
.state = (state_), \
.data = (data_), \
IF_ENABLED(CONFIG_DEVICE_DEPS, (.deps = (deps_),)) /**/ \
IF_ENABLED(CONFIG_PM_DEVICE, ({ .pm_base = (pm_),)}) /**/ \
IF_ENABLED(CONFIG_PM_DEVICE, ({ .pm_base = (pm_),})) /**/ \
}
/**