Commit 01009eec authored by Marcel Holtmann's avatar Marcel Holtmann

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: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 7c40fb8d
...@@ -218,14 +218,7 @@ static const struct hci_uart_proto athp = { ...@@ -218,14 +218,7 @@ static const struct hci_uart_proto athp = {
int __init ath_init(void) int __init ath_init(void)
{ {
int err = hci_uart_register_proto(&athp); return hci_uart_register_proto(&athp);
if (!err)
BT_INFO("HCIATH3K protocol initialized");
else
BT_ERR("HCIATH3K protocol registration failed");
return err;
} }
int __exit ath_deinit(void) int __exit ath_deinit(void)
......
...@@ -748,14 +748,7 @@ static const struct hci_uart_proto bcsp = { ...@@ -748,14 +748,7 @@ static const struct hci_uart_proto bcsp = {
int __init bcsp_init(void) int __init bcsp_init(void)
{ {
int err = hci_uart_register_proto(&bcsp); return hci_uart_register_proto(&bcsp);
if (!err)
BT_INFO("HCI BCSP protocol initialized");
else
BT_ERR("HCI BCSP protocol registration failed");
return err;
} }
int __exit bcsp_deinit(void) int __exit bcsp_deinit(void)
......
...@@ -152,14 +152,7 @@ static const struct hci_uart_proto h4p = { ...@@ -152,14 +152,7 @@ static const struct hci_uart_proto h4p = {
int __init h4_init(void) int __init h4_init(void)
{ {
int err = hci_uart_register_proto(&h4p); return hci_uart_register_proto(&h4p);
if (!err)
BT_INFO("HCI H4 protocol initialized");
else
BT_ERR("HCI H4 protocol registration failed");
return err;
} }
int __exit h4_deinit(void) int __exit h4_deinit(void)
......
...@@ -756,14 +756,7 @@ static const struct hci_uart_proto h5p = { ...@@ -756,14 +756,7 @@ static const struct hci_uart_proto h5p = {
int __init h5_init(void) int __init h5_init(void)
{ {
int err = hci_uart_register_proto(&h5p); return hci_uart_register_proto(&h5p);
if (!err)
BT_INFO("HCI Three-wire UART (H5) protocol initialized");
else
BT_ERR("HCI Three-wire UART (H5) protocol init failed");
return err;
} }
int __exit h5_deinit(void) int __exit h5_deinit(void)
......
...@@ -60,6 +60,8 @@ int hci_uart_register_proto(const struct hci_uart_proto *p) ...@@ -60,6 +60,8 @@ int hci_uart_register_proto(const struct hci_uart_proto *p)
hup[p->id] = p; hup[p->id] = p;
BT_INFO("HCI UART protocol %s registered", p->name);
return 0; return 0;
} }
......
...@@ -518,14 +518,7 @@ static const struct hci_uart_proto llp = { ...@@ -518,14 +518,7 @@ static const struct hci_uart_proto llp = {
int __init ll_init(void) int __init ll_init(void)
{ {
int err = hci_uart_register_proto(&llp); return hci_uart_register_proto(&llp);
if (!err)
BT_INFO("HCILL protocol initialized");
else
BT_ERR("HCILL protocol registration failed");
return err;
} }
int __exit ll_deinit(void) int __exit ll_deinit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment