]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/ntb/ntb_transport.c
NTB: ntb_transport: fix debugfs_remove_recursive
[linux-beck.git] / drivers / ntb / ntb_transport.c
index 4eb8adb345084430947ccabdf6962c1099fbb703..38e9569bb8564a912b85475f2096145cc5a37650 100644 (file)
@@ -2270,9 +2270,8 @@ module_init(ntb_transport_init);
 
 static void __exit ntb_transport_exit(void)
 {
-       debugfs_remove_recursive(nt_debugfs_dir);
-
        ntb_unregister_client(&ntb_transport_client);
        bus_unregister(&ntb_transport_bus);
+       debugfs_remove_recursive(nt_debugfs_dir);
 }
 module_exit(ntb_transport_exit);