Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5eb8a78c authored by Patrick Daly's avatar Patrick Daly
Browse files

power: qpnp-smbcharger: Fix error path



Properly clean up voteables on error.

Change-Id: I3fb7fe93956effe3144c79ba5e00ddea3ca02b35
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent f9fc5990
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, 2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -8488,6 +8488,8 @@ static int smbchg_probe(struct platform_device *pdev)
out:
	handle_usb_removal(chip);
votables_cleanup:
	if (chip->hvdcp_enable_votable)
		destroy_votable(chip->hvdcp_enable_votable);
	if (chip->aicl_deglitch_short_votable)
		destroy_votable(chip->aicl_deglitch_short_votable);
	if (chip->hw_aicl_rerun_enable_indirect_votable)