diff options
author | Bing Zhao <bzhao@marvell.com> | 2009-06-02 17:29:37 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-22 17:25:32 -0400 |
commit | fb784f0508d5aa39a23e72879a8dfb517c6f6e7f (patch) | |
tree | f8e105589bc592467e8bb306aadade361b4f5412 /drivers/bluetooth/btmrvl_main.c | |
parent | 789221ecc870117b77e354d488d5d29f15410de8 (diff) |
Bluetooth: Add debugfs support to btmrvl driver
/debug/btmrvl/config/
/debug/btmrvl/status/
See Documentation/btmrvl.txt for details.
This patch incorporates a lot of comments given by
Nicolas Pitre <nico@marvell.com>. Many thanks to Nicolas Pitre.
Signed-off-by: Rahul Tank <rahult@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btmrvl_main.c')
-rw-r--r-- | drivers/bluetooth/btmrvl_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c index 11c2f2cecf18..b4f44454666f 100644 --- a/drivers/bluetooth/btmrvl_main.c +++ b/drivers/bluetooth/btmrvl_main.c | |||
@@ -658,6 +658,10 @@ struct btmrvl_private *btmrvl_add_card(void *card) | |||
658 | goto err_hci_register_dev; | 658 | goto err_hci_register_dev; |
659 | } | 659 | } |
660 | 660 | ||
661 | #ifdef CONFIG_DEBUG_FS | ||
662 | btmrvl_debugfs_init(hdev); | ||
663 | #endif | ||
664 | |||
661 | BT_DBG("Leave"); | 665 | BT_DBG("Leave"); |
662 | return priv; | 666 | return priv; |
663 | 667 | ||
@@ -692,6 +696,10 @@ int btmrvl_remove_card(struct btmrvl_private *priv) | |||
692 | 696 | ||
693 | kthread_stop(priv->main_thread.task); | 697 | kthread_stop(priv->main_thread.task); |
694 | 698 | ||
699 | #ifdef CONFIG_DEBUG_FS | ||
700 | btmrvl_debugfs_remove(hdev); | ||
701 | #endif | ||
702 | |||
695 | hci_unregister_dev(hdev); | 703 | hci_unregister_dev(hdev); |
696 | 704 | ||
697 | hci_free_dev(hdev); | 705 | hci_free_dev(hdev); |