Skip to content
Commit e9a1c512 authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood
Browse files

wm8350-regulator: fix wm8350_register_regulator error handling



In the case of platform_device_add() fail, we should call
platform_device_put() instead of platform_device_del()

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 979da89a
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