Skip to content

Commit 8a4aeeb

Browse files
kt-peterscarlescufi
authored andcommitted
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 <[email protected]>
1 parent 796e108 commit 8a4aeeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio_emul.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,6 @@ static int gpio_emul_pm_device_pm_action(const struct device *dev,
738738
&gpio_emul_data_##_num, \
739739
&gpio_emul_config_##_num, POST_KERNEL, \
740740
CONFIG_GPIO_INIT_PRIORITY, \
741-
&gpio_emul_driver)
741+
&gpio_emul_driver);
742742

743-
DT_INST_FOREACH_STATUS_OKAY(DEFINE_GPIO_EMUL);
743+
DT_INST_FOREACH_STATUS_OKAY(DEFINE_GPIO_EMUL)

0 commit comments

Comments
 (0)