diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-07-24 01:04:44 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-27 15:35:58 -0400 |
commit | f2b94bb9e0b8bd048331a6e9d616e918f4bcbd97 (patch) | |
tree | a13f7b9b3b748e309e25a158e7925b080aaa05ed /drivers/bluetooth | |
parent | e9da101f6d0c9a8fda9f78a80365ba2a9f75603f (diff) |
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: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_ath.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/hci_bcsp.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/hci_h4.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/hci_ll.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/drivers/bluetooth/hci_ath.c b/drivers/bluetooth/hci_ath.c index 5ab258bccccb..b941dd5dc981 100644 --- a/drivers/bluetooth/hci_ath.c +++ b/drivers/bluetooth/hci_ath.c | |||
@@ -217,7 +217,7 @@ static struct hci_uart_proto athp = { | |||
217 | .flush = ath_flush, | 217 | .flush = ath_flush, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | int ath_init(void) | 220 | int __init ath_init(void) |
221 | { | 221 | { |
222 | int err = hci_uart_register_proto(&athp); | 222 | int err = hci_uart_register_proto(&athp); |
223 | 223 | ||
@@ -229,7 +229,7 @@ int ath_init(void) | |||
229 | return err; | 229 | return err; |
230 | } | 230 | } |
231 | 231 | ||
232 | int ath_deinit(void) | 232 | int __exit ath_deinit(void) |
233 | { | 233 | { |
234 | return hci_uart_unregister_proto(&athp); | 234 | return hci_uart_unregister_proto(&athp); |
235 | } | 235 | } |
diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c index 42d69d4de05c..9c5b2dc38e29 100644 --- a/drivers/bluetooth/hci_bcsp.c +++ b/drivers/bluetooth/hci_bcsp.c | |||
@@ -739,7 +739,7 @@ static struct hci_uart_proto bcsp = { | |||
739 | .flush = bcsp_flush | 739 | .flush = bcsp_flush |
740 | }; | 740 | }; |
741 | 741 | ||
742 | int bcsp_init(void) | 742 | int __init bcsp_init(void) |
743 | { | 743 | { |
744 | int err = hci_uart_register_proto(&bcsp); | 744 | int err = hci_uart_register_proto(&bcsp); |
745 | 745 | ||
@@ -751,7 +751,7 @@ int bcsp_init(void) | |||
751 | return err; | 751 | return err; |
752 | } | 752 | } |
753 | 753 | ||
754 | int bcsp_deinit(void) | 754 | int __exit bcsp_deinit(void) |
755 | { | 755 | { |
756 | return hci_uart_unregister_proto(&bcsp); | 756 | return hci_uart_unregister_proto(&bcsp); |
757 | } | 757 | } |
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index b2cf50e3cafb..7b8ad93e2c36 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c | |||
@@ -173,7 +173,7 @@ static struct hci_uart_proto h4p = { | |||
173 | .flush = h4_flush, | 173 | .flush = h4_flush, |
174 | }; | 174 | }; |
175 | 175 | ||
176 | int h4_init(void) | 176 | int __init h4_init(void) |
177 | { | 177 | { |
178 | int err = hci_uart_register_proto(&h4p); | 178 | int err = hci_uart_register_proto(&h4p); |
179 | 179 | ||
@@ -185,7 +185,7 @@ int h4_init(void) | |||
185 | return err; | 185 | return err; |
186 | } | 186 | } |
187 | 187 | ||
188 | int h4_deinit(void) | 188 | int __exit h4_deinit(void) |
189 | { | 189 | { |
190 | return hci_uart_unregister_proto(&h4p); | 190 | return hci_uart_unregister_proto(&h4p); |
191 | } | 191 | } |
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c index 5744aba8272e..38595e782d02 100644 --- a/drivers/bluetooth/hci_ll.c +++ b/drivers/bluetooth/hci_ll.c | |||
@@ -517,7 +517,7 @@ static struct hci_uart_proto llp = { | |||
517 | .flush = ll_flush, | 517 | .flush = ll_flush, |
518 | }; | 518 | }; |
519 | 519 | ||
520 | int ll_init(void) | 520 | int __init ll_init(void) |
521 | { | 521 | { |
522 | int err = hci_uart_register_proto(&llp); | 522 | int err = hci_uart_register_proto(&llp); |
523 | 523 | ||
@@ -529,7 +529,7 @@ int ll_init(void) | |||
529 | return err; | 529 | return err; |
530 | } | 530 | } |
531 | 531 | ||
532 | int ll_deinit(void) | 532 | int __exit ll_deinit(void) |
533 | { | 533 | { |
534 | return hci_uart_unregister_proto(&llp); | 534 | return hci_uart_unregister_proto(&llp); |
535 | } | 535 | } |