mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
drivers/pcmcia/pd6729.c: convert to module_pci_driver
Use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen <[email protected]> Cc: Bill Pemberton <[email protected]> Cc: Eric Miao <[email protected]> Cc: Dominik Brodowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
3173463418
commit
ae647589a4
1 changed files with 1 additions and 12 deletions
|
|
@ -777,15 +777,4 @@ static struct pci_driver pd6729_pci_driver = {
|
|||
.remove = pd6729_pci_remove,
|
||||
};
|
||||
|
||||
static int pd6729_module_init(void)
|
||||
{
|
||||
return pci_register_driver(&pd6729_pci_driver);
|
||||
}
|
||||
|
||||
static void pd6729_module_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&pd6729_pci_driver);
|
||||
}
|
||||
|
||||
module_init(pd6729_module_init);
|
||||
module_exit(pd6729_module_exit);
|
||||
module_pci_driver(pd6729_pci_driver);
|
||||
|
|
|
|||
Loading…
Reference in a new issue