Christophe JAILLET
6933199ea1
leds: ktd2692: Fix an error handling path
...
[ Upstream commit ee78b9360e ]
In 'ktd2692_parse_dt()', if an error occurs after a successful
'regulator_enable()' call, we should call 'regulator_enable()'.
This is the same in 'ktd2692_probe()', if an error occurs after a
successful 'ktd2692_parse_dt()' call.
Instead of adding 'regulator_enable()' in several places, implement a
resource managed solution and simplify the remove function accordingly.
Fixes: b7da8c5c72 ("leds: Add ktd2692 flash LED driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr >
Signed-off-by: Pavel Machek <pavel@ucw.cz >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-05-16 11:24:56 +09:00
..
2017-08-30 10:21:51 +02:00
2016-03-23 10:05:44 -07:00
2016-09-15 16:49:39 +02:00
2016-01-04 09:57:37 +01:00
2023-05-16 08:46:35 +09:00
2018-03-24 11:00:08 +01:00
2023-05-16 10:33:24 +09:00
2023-05-16 08:45:09 +09:00
2016-01-04 09:57:38 +01:00
2016-01-04 09:57:32 +01:00
2014-10-20 16:20:43 +02:00
2023-05-16 09:45:06 +09:00
2023-05-16 09:45:06 +09:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:32 +01:00
2014-10-20 16:20:43 +02:00
2015-11-03 08:59:09 +01:00
2015-06-22 13:57:09 -07:00
2023-05-16 08:45:06 +09:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:34 +01:00
2015-08-28 14:06:23 +02:00
2014-09-29 10:21:01 -07:00
2016-09-15 16:49:43 +02:00
2016-06-20 09:57:56 +02:00
2016-01-04 09:57:38 +01:00
2018-08-30 20:26:28 -07:00
2016-08-15 14:02:31 +02:00
2023-05-16 11:24:56 +09:00
2023-05-16 08:46:17 +09:00
2015-08-28 14:06:02 +02:00
2023-05-16 08:45:07 +09:00
2016-01-04 09:57:32 +01:00
2015-11-03 08:59:50 +01:00
2023-05-15 12:17:08 +09:00
2016-01-04 09:57:33 +01:00
2016-03-14 09:22:20 +01:00
2016-07-18 08:46:09 +02:00
2016-01-04 09:57:33 +01:00
2023-05-16 11:05:49 +09:00
2023-05-15 14:32:51 +09:00
2016-01-04 09:57:33 +01:00
2016-03-14 09:22:22 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:34 +01:00
2016-03-14 09:22:23 +01:00
2016-01-04 09:57:38 +01:00
2016-01-04 09:57:35 +01:00
2015-11-03 08:59:52 +01:00
2016-09-15 16:49:39 +02:00
2015-11-03 08:59:54 +01:00
2015-11-03 08:59:36 +01:00
2016-01-04 09:57:37 +01:00
2015-11-03 08:59:13 +01:00
2018-04-13 19:48:03 +02:00
2016-01-04 09:57:34 +01:00
2023-05-15 12:37:28 +09:00
2018-03-22 09:17:55 +01:00
2016-06-29 17:33:18 +10:00
2016-05-17 14:45:02 +02:00
2014-10-20 16:20:43 +02:00
2016-01-04 09:57:35 +01:00
2016-03-14 09:22:22 +01:00
2015-11-03 08:59:20 +01:00
2016-04-19 09:03:20 +02:00
2016-01-04 09:57:38 +01:00
2016-01-04 09:57:39 +01:00
2016-04-14 13:08:58 +02:00
2016-01-04 09:57:32 +01:00
2014-03-28 10:54:15 +01:00
2023-05-16 08:45:04 +09:00
2016-01-04 09:57:35 +01:00
2015-11-03 08:59:58 +01:00
2016-05-06 10:22:09 +02:00
2016-09-15 16:49:39 +02:00