mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
When disabling regulator when they are unused, check before is they are enabled. While here don't check the enable_cnt on the regulator entry as it is checked by regnode_stop. This solve the panic on any board using a fixed regulator that is driven by a gpio when the regulator is unused. Tested On: OrangePi One Pointy Hat to: myself Reported by: kevans, Milan Obuch (freebsd-arm@dino.sk) |
||
|---|---|---|
| .. | ||
| regdev_if.m | ||
| regnode_if.m | ||
| regulator.c | ||
| regulator.h | ||
| regulator_bus.c | ||
| regulator_fixed.c | ||
| regulator_fixed.h | ||