Commit e9a1c5129de1caf4526b8df5f200ff628b2ffab4
Committed by
Liam Girdwood
1 parent
979da89a9c
Exists in
master
and in
7 other branches
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: Axel Lin <axel.lin@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/regulator/wm8350-regulator.c