From 8a4aeeb11e38926956b95a7bd37f6a38883921c0 Mon Sep 17 00:00:00 2001 From: Jan Peters Date: Thu, 28 Apr 2022 12:35:16 +0200 Subject: [PATCH] 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 --- drivers/gpio/gpio_emul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio_emul.c b/drivers/gpio/gpio_emul.c index 52bae3faa12..fa83f53ccd7 100644 --- a/drivers/gpio/gpio_emul.c +++ b/drivers/gpio/gpio_emul.c @@ -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)