summaryrefslogtreecommitdiff
path: root/drivers/mfd/cgbc-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/cgbc-core.c')
-rw-r--r--drivers/mfd/cgbc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
index 4782ff1114a9..33a32063050f 100644
--- a/drivers/mfd/cgbc-core.c
+++ b/drivers/mfd/cgbc-core.c
@@ -363,9 +363,9 @@ static void cgbc_remove(struct platform_device *pdev)
{
struct cgbc_device_data *cgbc = platform_get_drvdata(pdev);
- cgbc_session_release(cgbc);
-
mfd_remove_devices(&pdev->dev);
+
+ cgbc_session_release(cgbc);
}
static struct platform_driver cgbc_driver = {