[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1497246453-11151-1-git-send-email-jeffy.chen@rock-chips.com>
Date: Mon, 12 Jun 2017 13:47:33 +0800
From: Jeffy Chen <jeffy.chen@...k-chips.com>
To: linux-kernel@...r.kernel.org, lee.jones@...aro.org
Cc: briannorris@...omium.org, dtor@...omium.org, dianders@...omium.org,
Jeffy Chen <jeffy.chen@...k-chips.com>
Subject: [PATCH] mfd: cros_ec: Add missing free_irq in cros_ec_remove
Signed-off-by: Jeffy Chen <jeffy.chen@...k-chips.com>
---
drivers/mfd/cros_ec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mfd/cros_ec.c b/drivers/mfd/cros_ec.c
index e31ac60..dc6ce90 100644
--- a/drivers/mfd/cros_ec.c
+++ b/drivers/mfd/cros_ec.c
@@ -183,6 +183,9 @@ int cros_ec_remove(struct cros_ec_device *ec_dev)
cros_ec_acpi_remove_gpe_handler();
+ if (ec_dev->irq)
+ free_irq(ec_dev->irq, ec_dev);
+
return 0;
}
EXPORT_SYMBOL(cros_ec_remove);
--
2.1.4
Powered by blists - more mailing lists