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:
Jan Peters 2022-04-28 12:35:16 +02:00 committed by Carles Cufí
commit 8a4aeeb11e

View file

@ -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)