From 651ddd69af8a70ed334bb84bffce6b643e6a6c84 Mon Sep 17 00:00:00 2001 From: Aksel Skauge Mellbye Date: Wed, 11 Jun 2025 18:27:36 +0200 Subject: [PATCH] drivers: adc: silabs: Don't fail to init if clock is on It is not an error if the clock source is already enabled. This may happen if a bootloader has used the peripheral and not de-initialized it before booting the application. Signed-off-by: Aksel Skauge Mellbye --- drivers/adc/iadc_gecko.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/adc/iadc_gecko.c b/drivers/adc/iadc_gecko.c index ee8d3804734..876da1d7c73 100644 --- a/drivers/adc/iadc_gecko.c +++ b/drivers/adc/iadc_gecko.c @@ -370,7 +370,7 @@ static int adc_gecko_pm_action(const struct device *dev, enum pm_device_action a if (action == PM_DEVICE_ACTION_RESUME) { err = clock_control_on(config->clock_dev, (clock_control_subsys_t)&config->clock_cfg); - if (err < 0) { + if (err < 0 && err != -EALREADY) { return err; }