]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
Merge branch 'wmi-fix' into release-2.6.27
authorAndi Kleen <ak@linux.intel.com>
Thu, 4 Sep 2008 12:41:02 +0000 (14:41 +0200)
committerAndi Kleen <ak@linux.intel.com>
Thu, 4 Sep 2008 12:41:02 +0000 (14:41 +0200)
drivers/misc/acer-wmi.c

index b2d9878dc3f0ea606896c356ced7d942acef2106..8290f67570c0663fa47dff0e7f0e55a7e25ce122 100644 (file)
@@ -1186,7 +1186,7 @@ static int create_debugfs(void)
        return 0;
 
 error_debugfs:
-               remove_debugfs();
+       remove_debugfs();
        return -ENOMEM;
 }
 
@@ -1267,6 +1267,7 @@ error_platform_register:
 static void __exit acer_wmi_exit(void)
 {
        remove_sysfs(acer_platform_device);
+       remove_debugfs();
        platform_device_del(acer_platform_device);
        platform_driver_unregister(&acer_platform_driver);