]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Bluetooth: Add __init and __exit marks to UART drivers
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 24 Jul 2010 05:04:44 +0000 (02:04 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 27 Jul 2010 19:35:58 +0000 (12:35 -0700)
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>
drivers/bluetooth/hci_ath.c
drivers/bluetooth/hci_bcsp.c
drivers/bluetooth/hci_h4.c
drivers/bluetooth/hci_ll.c

index 5ab258bccccb79e6ef859230888b6fd9fe171307..b941dd5dc9818e722b8ccb2bfca40c6f967dd00d 100644 (file)
@@ -217,7 +217,7 @@ static struct hci_uart_proto athp = {
        .flush = ath_flush,
 };
 
-int ath_init(void)
+int __init ath_init(void)
 {
        int err = hci_uart_register_proto(&athp);
 
@@ -229,7 +229,7 @@ int ath_init(void)
        return err;
 }
 
-int ath_deinit(void)
+int __exit ath_deinit(void)
 {
        return hci_uart_unregister_proto(&athp);
 }
index 42d69d4de05c9859bd01af180bc2937a1443d4fa..9c5b2dc38e29455884618b4dfb5c8256d5fa5496 100644 (file)
@@ -739,7 +739,7 @@ static struct hci_uart_proto bcsp = {
        .flush          = bcsp_flush
 };
 
-int bcsp_init(void)
+int __init bcsp_init(void)
 {
        int err = hci_uart_register_proto(&bcsp);
 
@@ -751,7 +751,7 @@ int bcsp_init(void)
        return err;
 }
 
-int bcsp_deinit(void)
+int __exit bcsp_deinit(void)
 {
        return hci_uart_unregister_proto(&bcsp);
 }
index b2cf50e3cafb90ec4fe3b53d02c81b7c8e3f06fc..7b8ad93e2c367401e98eef5a38b2f51a3096ddac 100644 (file)
@@ -173,7 +173,7 @@ static struct hci_uart_proto h4p = {
        .flush          = h4_flush,
 };
 
-int h4_init(void)
+int __init h4_init(void)
 {
        int err = hci_uart_register_proto(&h4p);
 
@@ -185,7 +185,7 @@ int h4_init(void)
        return err;
 }
 
-int h4_deinit(void)
+int __exit h4_deinit(void)
 {
        return hci_uart_unregister_proto(&h4p);
 }
index 5744aba8272eaeddb0fa81d530eb7ef6d3dd598e..38595e782d02e1c39dcbd82cc0fa0c94b0babfd2 100644 (file)
@@ -517,7 +517,7 @@ static struct hci_uart_proto llp = {
        .flush          = ll_flush,
 };
 
-int ll_init(void)
+int __init ll_init(void)
 {
        int err = hci_uart_register_proto(&llp);
 
@@ -529,7 +529,7 @@ int ll_init(void)
        return err;
 }
 
-int ll_deinit(void)
+int __exit ll_deinit(void)
 {
        return hci_uart_unregister_proto(&llp);
 }