summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/dell/dell-smbios-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/dell/dell-smbios-base.c')
-rw-r--r--drivers/platform/x86/dell/dell-smbios-base.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell/dell-smbios-base.c b/drivers/platform/x86/dell/dell-smbios-base.c
index 6565fac24cde..73e41eb69cb5 100644
--- a/drivers/platform/x86/dell/dell-smbios-base.c
+++ b/drivers/platform/x86/dell/dell-smbios-base.c
@@ -622,7 +622,10 @@ static int __init dell_smbios_init(void)
return 0;
fail_sysfs:
- free_group(platform_device);
+ if (!wmi)
+ exit_dell_smbios_wmi();
+ if (!smm)
+ exit_dell_smbios_smm();
fail_create_group:
platform_device_del(platform_device);