forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pcmcia: convert drivers/pcmcia/* to use module_platform_driver()
This patch converts the drivers in drivers/pcmcia/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <[email protected]> Acked-by: Wolfram Sang <[email protected]> Acked-by: Olof Johansson <[email protected]> Acked-by: Michael Hennerich <[email protected]> Acked-by: Marc Zyngier <[email protected]> [for the viper part] Acked-by: Manuel Lauss <[email protected]> [for the db1xxx_ss.c part] Signed-off-by: Dominik Brodowski <[email protected]>
- Loading branch information
Showing
6 changed files
with
6 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,18 +310,7 @@ static struct platform_driver bfin_cf_driver = { | |
.remove = __devexit_p(bfin_cf_remove), | ||
}; | ||
|
||
static int __init bfin_cf_init(void) | ||
{ | ||
return platform_driver_register(&bfin_cf_driver); | ||
} | ||
|
||
static void __exit bfin_cf_exit(void) | ||
{ | ||
platform_driver_unregister(&bfin_cf_driver); | ||
} | ||
|
||
module_init(bfin_cf_init); | ||
module_exit(bfin_cf_exit); | ||
module_platform_driver(bfin_cf_driver); | ||
|
||
MODULE_AUTHOR("Michael Hennerich <[email protected]>"); | ||
MODULE_DESCRIPTION("BFIN CF/PCMCIA Driver"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -365,17 +365,7 @@ static struct platform_driver electra_cf_driver = { | |
.remove = electra_cf_remove, | ||
}; | ||
|
||
static int __init electra_cf_init(void) | ||
{ | ||
return platform_driver_register(&electra_cf_driver); | ||
} | ||
module_init(electra_cf_init); | ||
|
||
static void __exit electra_cf_exit(void) | ||
{ | ||
platform_driver_unregister(&electra_cf_driver); | ||
} | ||
module_exit(electra_cf_exit); | ||
module_platform_driver(electra_cf_driver); | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR ("Olof Johansson <[email protected]>"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters