Skip to content
Commit ad7725cb authored by Vasiliy Kulikov's avatar Vasiliy Kulikov Committed by Liam Girdwood
Browse files

regulator: fix device_register() error handling



If device_register() fails then call put_device().
See comment to device_register.

Signed-off-by: default avatarVasiliy Kulikov <segooon@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent c6ea21e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment