diff options
author | Andreas Dannenberg <dannenberg@ti.com> | 2015-09-29 01:33:51 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-09-29 17:48:07 +0300 |
commit | dfc602524b9f4ecc6de9a3050667412176db7c55 (patch) | |
tree | bdc9773bd788b51a5d8f0c06b5e280629f530b5e /mm/early_ioremap.c | |
parent | 9b1cf1e44d91e80b17a315d04193b1764ca82a15 (diff) | |
download | linux-dfc602524b9f4ecc6de9a3050667412176db7c55.tar.xz |
power: bq24257: Use managed power supply register
Use the devm_* managed version of the function to register the power
supply and remove the associated unregister function. This will simplify
error handling moving forward as it allows the unregister to happen
automatically. It also saves a few lines of code.
As this changes the order of putting the bq24257 into reset vs.
unregistering the power-supply during driver remove re-tested various
driver unload scenario to make sure that this doesn't cause any
unintended side effects such as erroneous interrupts.
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'mm/early_ioremap.c')
0 files changed, 0 insertions, 0 deletions