aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/acer-wmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index b2d9878dc3f0..8290f67570c0 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -1186,7 +1186,7 @@ static int create_debugfs(void)
1186 return 0; 1186 return 0;
1187 1187
1188error_debugfs: 1188error_debugfs:
1189 remove_debugfs(); 1189 remove_debugfs();
1190 return -ENOMEM; 1190 return -ENOMEM;
1191} 1191}
1192 1192
@@ -1267,6 +1267,7 @@ error_platform_register:
1267static void __exit acer_wmi_exit(void) 1267static void __exit acer_wmi_exit(void)
1268{ 1268{
1269 remove_sysfs(acer_platform_device); 1269 remove_sysfs(acer_platform_device);
1270 remove_debugfs();
1270 platform_device_del(acer_platform_device); 1271 platform_device_del(acer_platform_device);
1271 platform_driver_unregister(&acer_platform_driver); 1272 platform_driver_unregister(&acer_platform_driver);
1272 1273