Bluetooth: Add debugfs support to btmrvl driver
[pandora-kernel.git] / drivers / bluetooth / btmrvl_main.c
index 11c2f2c..b4f4445 100644 (file)
@@ -658,6 +658,10 @@ struct btmrvl_private *btmrvl_add_card(void *card)
                goto err_hci_register_dev;
        }
 
+#ifdef CONFIG_DEBUG_FS
+       btmrvl_debugfs_init(hdev);
+#endif
+
        BT_DBG("Leave");
        return priv;
 
@@ -692,6 +696,10 @@ int btmrvl_remove_card(struct btmrvl_private *priv)
 
        kthread_stop(priv->main_thread.task);
 
+#ifdef CONFIG_DEBUG_FS
+       btmrvl_debugfs_remove(hdev);
+#endif
+
        hci_unregister_dev(hdev);
 
        hci_free_dev(hdev);