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

Commit 16a847ff authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-fg-gen3: Free the interrupt handlers in fg_cleanup"

parents 6c9da9fc f580cb96
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4934,6 +4934,13 @@ static int fg_parse_dt(struct fg_chip *chip)

static void fg_cleanup(struct fg_chip *chip)
{
	int i;

	for (i = 0; i < FG_IRQ_MAX; i++) {
		if (fg_irqs[i].irq)
			devm_free_irq(chip->dev, fg_irqs[i].irq, chip);
	}

	power_supply_unreg_notifier(&chip->nb);
	debugfs_remove_recursive(chip->dfs_root);
	if (chip->awake_votable)