Skip to content

Commit e0c005f

Browse files
bigguinessgregkh
authored andcommitted
drivers/bluetooth: use module_pcmcia_driver() in pcmcia drivers
Use the new module_pcmcia_driver() macro to remove the boilerplate module init/exit code in the pcmcia drivers. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4606048 commit e0c005f

4 files changed

Lines changed: 4 additions & 56 deletions

File tree

‎drivers/bluetooth/bluecard_cs.c‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -934,17 +934,4 @@ static struct pcmcia_driver bluecard_driver = {
934934
.remove = bluecard_detach,
935935
.id_table = bluecard_ids,
936936
};
937-
938-
static int __init init_bluecard_cs(void)
939-
{
940-
return pcmcia_register_driver(&bluecard_driver);
941-
}
942-
943-
944-
static void __exit exit_bluecard_cs(void)
945-
{
946-
pcmcia_unregister_driver(&bluecard_driver);
947-
}
948-
949-
module_init(init_bluecard_cs);
950-
module_exit(exit_bluecard_cs);
937+
module_pcmcia_driver(bluecard_driver);

‎drivers/bluetooth/bt3c_cs.c‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -760,17 +760,4 @@ static struct pcmcia_driver bt3c_driver = {
760760
.remove = bt3c_detach,
761761
.id_table = bt3c_ids,
762762
};
763-
764-
static int __init init_bt3c_cs(void)
765-
{
766-
return pcmcia_register_driver(&bt3c_driver);
767-
}
768-
769-
770-
static void __exit exit_bt3c_cs(void)
771-
{
772-
pcmcia_unregister_driver(&bt3c_driver);
773-
}
774-
775-
module_init(init_bt3c_cs);
776-
module_exit(exit_bt3c_cs);
763+
module_pcmcia_driver(bt3c_driver);

‎drivers/bluetooth/btuart_cs.c‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -688,17 +688,4 @@ static struct pcmcia_driver btuart_driver = {
688688
.remove = btuart_detach,
689689
.id_table = btuart_ids,
690690
};
691-
692-
static int __init init_btuart_cs(void)
693-
{
694-
return pcmcia_register_driver(&btuart_driver);
695-
}
696-
697-
698-
static void __exit exit_btuart_cs(void)
699-
{
700-
pcmcia_unregister_driver(&btuart_driver);
701-
}
702-
703-
module_init(init_btuart_cs);
704-
module_exit(exit_btuart_cs);
691+
module_pcmcia_driver(btuart_driver);

‎drivers/bluetooth/dtl1_cs.c‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -628,17 +628,4 @@ static struct pcmcia_driver dtl1_driver = {
628628
.remove = dtl1_detach,
629629
.id_table = dtl1_ids,
630630
};
631-
632-
static int __init init_dtl1_cs(void)
633-
{
634-
return pcmcia_register_driver(&dtl1_driver);
635-
}
636-
637-
638-
static void __exit exit_dtl1_cs(void)
639-
{
640-
pcmcia_unregister_driver(&dtl1_driver);
641-
}
642-
643-
module_init(init_dtl1_cs);
644-
module_exit(exit_dtl1_cs);
631+
module_pcmcia_driver(dtl1_driver);

0 commit comments

Comments
 (0)