Skip to content

Commit f2b94bb

Browse files
Gustavo F. Padovanholtmann
Gustavo F. Padovan
authored andcommitted
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>
1 parent e9da101 commit f2b94bb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

drivers/bluetooth/hci_ath.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static struct hci_uart_proto athp = {
217217
.flush = ath_flush,
218218
};
219219

220-
int ath_init(void)
220+
int __init ath_init(void)
221221
{
222222
int err = hci_uart_register_proto(&athp);
223223

@@ -229,7 +229,7 @@ int ath_init(void)
229229
return err;
230230
}
231231

232-
int ath_deinit(void)
232+
int __exit ath_deinit(void)
233233
{
234234
return hci_uart_unregister_proto(&athp);
235235
}

drivers/bluetooth/hci_bcsp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ static struct hci_uart_proto bcsp = {
739739
.flush = bcsp_flush
740740
};
741741

742-
int bcsp_init(void)
742+
int __init bcsp_init(void)
743743
{
744744
int err = hci_uart_register_proto(&bcsp);
745745

@@ -751,7 +751,7 @@ int bcsp_init(void)
751751
return err;
752752
}
753753

754-
int bcsp_deinit(void)
754+
int __exit bcsp_deinit(void)
755755
{
756756
return hci_uart_unregister_proto(&bcsp);
757757
}

drivers/bluetooth/hci_h4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static struct hci_uart_proto h4p = {
173173
.flush = h4_flush,
174174
};
175175

176-
int h4_init(void)
176+
int __init h4_init(void)
177177
{
178178
int err = hci_uart_register_proto(&h4p);
179179

@@ -185,7 +185,7 @@ int h4_init(void)
185185
return err;
186186
}
187187

188-
int h4_deinit(void)
188+
int __exit h4_deinit(void)
189189
{
190190
return hci_uart_unregister_proto(&h4p);
191191
}

drivers/bluetooth/hci_ll.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static struct hci_uart_proto llp = {
517517
.flush = ll_flush,
518518
};
519519

520-
int ll_init(void)
520+
int __init ll_init(void)
521521
{
522522
int err = hci_uart_register_proto(&llp);
523523

@@ -529,7 +529,7 @@ int ll_init(void)
529529
return err;
530530
}
531531

532-
int ll_deinit(void)
532+
int __exit ll_deinit(void)
533533
{
534534
return hci_uart_unregister_proto(&llp);
535535
}

0 commit comments

Comments
 (0)