summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-03-02 15:56:17 +0200
committerLee Jones <lee.jones@linaro.org>2021-04-14 16:06:21 +0100
commit1514ce4935f317384313af88c387341997665c78 (patch)
tree3b18ec195b1f0773bd4b692985c43f8d90e1fcf7 /drivers/mfd
parent0cab0aa14928ddf626d9e55944b59a3520187ac7 (diff)
downloadlinux-1514ce4935f317384313af88c387341997665c78.tar.bz2
mfd: intel_quark_i2c_gpio: Unregister resources in reversed order
In ->remove() unregister resources in reversed order, i.e. MFD devices first followed by I²C clock. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/intel_quark_i2c_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c
index fe8ca945f367..3f13dc3710b7 100644
--- a/drivers/mfd/intel_quark_i2c_gpio.c
+++ b/drivers/mfd/intel_quark_i2c_gpio.c
@@ -268,8 +268,8 @@ err_unregister_i2c_clk:
static void intel_quark_mfd_remove(struct pci_dev *pdev)
{
- intel_quark_unregister_i2c_clk(&pdev->dev);
mfd_remove_devices(&pdev->dev);
+ intel_quark_unregister_i2c_clk(&pdev->dev);
}
static struct pci_driver intel_quark_mfd_driver = {