much more visible failure in case of failed chip init

This commit is contained in:
rusefillc 2023-11-24 14:41:17 -05:00
parent 101df2cf92
commit f329f29bc5
1 changed files with 1 additions and 3 deletions

View File

@ -229,9 +229,7 @@ int gpiochips_init(void) {
continue;
if (chip->chip->init() < 0) {
/* remove chip if it fails to init */
/* TODO: we will have a gap, is it ok? */
chip->base = Gpio::Unassigned;
criticalError("Failed to init chip %d", i);
} else {
pins_added += chip->size;
}