diff options
-rw-r--r-- | drivers/misc/acer-wmi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c index e7a3fe508dff..9c883f8b3896 100644 --- a/drivers/misc/acer-wmi.c +++ b/drivers/misc/acer-wmi.c | |||
@@ -1167,7 +1167,7 @@ static int create_debugfs(void) | |||
1167 | return 0; | 1167 | return 0; |
1168 | 1168 | ||
1169 | error_debugfs: | 1169 | error_debugfs: |
1170 | remove_debugfs(); | 1170 | remove_debugfs(); |
1171 | return -ENOMEM; | 1171 | return -ENOMEM; |
1172 | } | 1172 | } |
1173 | 1173 | ||
@@ -1248,6 +1248,7 @@ error_platform_register: | |||
1248 | static void __exit acer_wmi_exit(void) | 1248 | static void __exit acer_wmi_exit(void) |
1249 | { | 1249 | { |
1250 | remove_sysfs(acer_platform_device); | 1250 | remove_sysfs(acer_platform_device); |
1251 | remove_debugfs(); | ||
1251 | platform_device_del(acer_platform_device); | 1252 | platform_device_del(acer_platform_device); |
1252 | platform_driver_unregister(&acer_platform_driver); | 1253 | platform_driver_unregister(&acer_platform_driver); |
1253 | 1254 | ||