Skip to content

Commit 5261e53

Browse files
loopjcfriedt
authored andcommitted
drivers: gpio: silabs: Don't fail to init is clock is already enabled
Don't fail to initialize gpio if it was already initialized, for example by mcuboot. Fixes #94281. Signed-off-by: James Smith <[email protected]>
1 parent c62bd3a commit 5261e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_silabs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static int gpio_silabs_common_init(const struct device *dev)
357357

358358
/* Enable clock */
359359
ret = clock_control_on(cfg->clock, (clock_control_subsys_t)&cfg->clock_cfg);
360-
if (ret < 0) {
360+
if (ret < 0 && ret != -EALREADY) {
361361
return ret;
362362
}
363363

0 commit comments

Comments
 (0)