aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-04-05 01:27:35 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-04-07 12:47:10 -0400
commit01009eec70a7d80773267b34522b0bb1208a73e9 (patch)
tree0a367519f7aa019036fa3dfe2a6a2ff94ae2daaa
parent7c40fb8db135288485f4f6226ceb69d64610a84e (diff)
Bluetooth: hci_uart: Remove the manual protocol init message
The init function for each HCI UART protocol prints the same on success and failure. This information is so generic, remove it and let the main HCI UART handling print it instead. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
-rw-r--r--drivers/bluetooth/hci_ath.c9
-rw-r--r--drivers/bluetooth/hci_bcsp.c9
-rw-r--r--drivers/bluetooth/hci_h4.c9
-rw-r--r--drivers/bluetooth/hci_h5.c9
-rw-r--r--drivers/bluetooth/hci_ldisc.c2
-rw-r--r--drivers/bluetooth/hci_ll.c9
6 files changed, 7 insertions, 40 deletions
diff --git a/drivers/bluetooth/hci_ath.c b/drivers/bluetooth/hci_ath.c
index 32c46cd40d85..54af95c95b07 100644
--- a/drivers/bluetooth/hci_ath.c
+++ b/drivers/bluetooth/hci_ath.c
@@ -218,14 +218,7 @@ static const struct hci_uart_proto athp = {
218 218
219int __init ath_init(void) 219int __init ath_init(void)
220{ 220{
221 int err = hci_uart_register_proto(&athp); 221 return hci_uart_register_proto(&athp);
222
223 if (!err)
224 BT_INFO("HCIATH3K protocol initialized");
225 else
226 BT_ERR("HCIATH3K protocol registration failed");
227
228 return err;
229} 222}
230 223
231int __exit ath_deinit(void) 224int __exit ath_deinit(void)
diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c
index 285fd0a97311..a467aa28009a 100644
--- a/drivers/bluetooth/hci_bcsp.c
+++ b/drivers/bluetooth/hci_bcsp.c
@@ -748,14 +748,7 @@ static const struct hci_uart_proto bcsp = {
748 748
749int __init bcsp_init(void) 749int __init bcsp_init(void)
750{ 750{
751 int err = hci_uart_register_proto(&bcsp); 751 return hci_uart_register_proto(&bcsp);
752
753 if (!err)
754 BT_INFO("HCI BCSP protocol initialized");
755 else
756 BT_ERR("HCI BCSP protocol registration failed");
757
758 return err;
759} 752}
760 753
761int __exit bcsp_deinit(void) 754int __exit bcsp_deinit(void)
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c
index 7c5e68cb9959..81ad249fc44f 100644
--- a/drivers/bluetooth/hci_h4.c
+++ b/drivers/bluetooth/hci_h4.c
@@ -152,14 +152,7 @@ static const struct hci_uart_proto h4p = {
152 152
153int __init h4_init(void) 153int __init h4_init(void)
154{ 154{
155 int err = hci_uart_register_proto(&h4p); 155 return hci_uart_register_proto(&h4p);
156
157 if (!err)
158 BT_INFO("HCI H4 protocol initialized");
159 else
160 BT_ERR("HCI H4 protocol registration failed");
161
162 return err;
163} 156}
164 157
165int __exit h4_deinit(void) 158int __exit h4_deinit(void)
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index de7da17ccdab..3455cecc9ecf 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -756,14 +756,7 @@ static const struct hci_uart_proto h5p = {
756 756
757int __init h5_init(void) 757int __init h5_init(void)
758{ 758{
759 int err = hci_uart_register_proto(&h5p); 759 return hci_uart_register_proto(&h5p);
760
761 if (!err)
762 BT_INFO("HCI Three-wire UART (H5) protocol initialized");
763 else
764 BT_ERR("HCI Three-wire UART (H5) protocol init failed");
765
766 return err;
767} 760}
768 761
769int __exit h5_deinit(void) 762int __exit h5_deinit(void)
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index ba3b988ce60a..19d0960489b6 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -60,6 +60,8 @@ int hci_uart_register_proto(const struct hci_uart_proto *p)
60 60
61 hup[p->id] = p; 61 hup[p->id] = p;
62 62
63 BT_INFO("HCI UART protocol %s registered", p->name);
64
63 return 0; 65 return 0;
64} 66}
65 67
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index c6a1aeb4e7fb..9ee24b075f79 100644
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -518,14 +518,7 @@ static const struct hci_uart_proto llp = {
518 518
519int __init ll_init(void) 519int __init ll_init(void)
520{ 520{
521 int err = hci_uart_register_proto(&llp); 521 return hci_uart_register_proto(&llp);
522
523 if (!err)
524 BT_INFO("HCILL protocol initialized");
525 else
526 BT_ERR("HCILL protocol registration failed");
527
528 return err;
529} 522}
530 523
531int __exit ll_deinit(void) 524int __exit ll_deinit(void)