Commit f2b94bb9 authored by Gustavo F. Padovan's avatar Gustavo F. Padovan Committed by Marcel Holtmann

Bluetooth: Add __init and __exit marks to UART drivers

Those marks are useful to save space in the binary and in the memory.
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent e9da101f
...@@ -217,7 +217,7 @@ static struct hci_uart_proto athp = { ...@@ -217,7 +217,7 @@ static struct hci_uart_proto athp = {
.flush = ath_flush, .flush = ath_flush,
}; };
int ath_init(void) int __init ath_init(void)
{ {
int err = hci_uart_register_proto(&athp); int err = hci_uart_register_proto(&athp);
...@@ -229,7 +229,7 @@ int ath_init(void) ...@@ -229,7 +229,7 @@ int ath_init(void)
return err; return err;
} }
int ath_deinit(void) int __exit ath_deinit(void)
{ {
return hci_uart_unregister_proto(&athp); return hci_uart_unregister_proto(&athp);
} }
...@@ -739,7 +739,7 @@ static struct hci_uart_proto bcsp = { ...@@ -739,7 +739,7 @@ static struct hci_uart_proto bcsp = {
.flush = bcsp_flush .flush = bcsp_flush
}; };
int bcsp_init(void) int __init bcsp_init(void)
{ {
int err = hci_uart_register_proto(&bcsp); int err = hci_uart_register_proto(&bcsp);
...@@ -751,7 +751,7 @@ int bcsp_init(void) ...@@ -751,7 +751,7 @@ int bcsp_init(void)
return err; return err;
} }
int bcsp_deinit(void) int __exit bcsp_deinit(void)
{ {
return hci_uart_unregister_proto(&bcsp); return hci_uart_unregister_proto(&bcsp);
} }
......
...@@ -173,7 +173,7 @@ static struct hci_uart_proto h4p = { ...@@ -173,7 +173,7 @@ static struct hci_uart_proto h4p = {
.flush = h4_flush, .flush = h4_flush,
}; };
int h4_init(void) int __init h4_init(void)
{ {
int err = hci_uart_register_proto(&h4p); int err = hci_uart_register_proto(&h4p);
...@@ -185,7 +185,7 @@ int h4_init(void) ...@@ -185,7 +185,7 @@ int h4_init(void)
return err; return err;
} }
int h4_deinit(void) int __exit h4_deinit(void)
{ {
return hci_uart_unregister_proto(&h4p); return hci_uart_unregister_proto(&h4p);
} }
...@@ -517,7 +517,7 @@ static struct hci_uart_proto llp = { ...@@ -517,7 +517,7 @@ static struct hci_uart_proto llp = {
.flush = ll_flush, .flush = ll_flush,
}; };
int ll_init(void) int __init ll_init(void)
{ {
int err = hci_uart_register_proto(&llp); int err = hci_uart_register_proto(&llp);
...@@ -529,7 +529,7 @@ int ll_init(void) ...@@ -529,7 +529,7 @@ int ll_init(void)
return err; return err;
} }
int ll_deinit(void) int __exit ll_deinit(void)
{ {
return hci_uart_unregister_proto(&llp); return hci_uart_unregister_proto(&llp);
} }
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