Skip to content

Commit

Permalink
Bluetooth: Add __init and __exit marks to UART drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo F. Padovan authored and holtmann committed Jul 27, 2010
1 parent e9da101 commit f2b94bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions drivers/bluetooth/hci_ath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
}
4 changes: 2 additions & 2 deletions drivers/bluetooth/hci_bcsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/bluetooth/hci_h4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
}
4 changes: 2 additions & 2 deletions drivers/bluetooth/hci_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
}

0 comments on commit f2b94bb

Please sign in to comment.