drivers: gpio: fix gpio_emul driver to allow multiple instances
A missing semicolon caused compiler errors when more than one emulated gpio device was defined in the device tree. Signed-off-by: Jan Peters <peters@kt-elektronik.de>
This commit is contained in:
parent
796e108816
commit
8a4aeeb11e
1 changed files with 2 additions and 2 deletions
|
@ -738,6 +738,6 @@ static int gpio_emul_pm_device_pm_action(const struct device *dev,
|
|||
&gpio_emul_data_##_num, \
|
||||
&gpio_emul_config_##_num, POST_KERNEL, \
|
||||
CONFIG_GPIO_INIT_PRIORITY, \
|
||||
&gpio_emul_driver)
|
||||
&gpio_emul_driver);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(DEFINE_GPIO_EMUL);
|
||||
DT_INST_FOREACH_STATUS_OKAY(DEFINE_GPIO_EMUL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue