Emmanuel Vadot bfeb2bd7ca regulator: Check status before disabling
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)
2018-04-20 20:30:33 +00:00
..
2017-09-14 15:34:45 +00:00
2018-04-08 22:59:34 +00:00
2018-04-17 16:46:01 +00:00
2018-03-08 19:24:10 +00:00
2018-01-10 20:05:19 +00:00
2018-04-13 20:30:49 +00:00
2018-03-23 15:35:07 +00:00
2017-11-09 13:38:17 +00:00
2017-12-30 19:27:22 +00:00
2018-03-30 20:24:29 +00:00
2018-04-13 20:30:49 +00:00
2018-04-08 22:59:34 +00:00
2018-03-14 18:27:06 +00:00
2018-03-28 07:59:16 +00:00
2018-04-08 22:59:34 +00:00
2017-11-30 20:33:45 +00:00
2017-11-30 20:33:45 +00:00
2018-04-08 22:59:34 +00:00
2018-04-13 19:43:23 +00:00
2017-10-21 07:23:45 +00:00
2017-11-30 20:33:45 +00:00
2018-04-13 20:30:49 +00:00
2018-03-29 17:36:34 +00:00
2018-04-13 20:30:49 +00:00
2017-12-29 00:59:56 +00:00
2018-04-08 22:59:34 +00:00
2018-02-19 19:31:18 +00:00
2018-01-03 00:56:30 +00:00
2018-01-13 16:31:07 +00:00
2018-03-23 15:35:15 +00:00