mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
drivers/pcmcia/yenta_socket.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: Dominik Brodowski <[email protected]> Cc: Bill Pemberton <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Eric Miao <[email protected]> Cc: Bjorn Helgaas <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ae647589a4
commit
7d19143fe6
1 changed files with 1 additions and 15 deletions
|
|
@ -1439,20 +1439,6 @@ static struct pci_driver yenta_cardbus_driver = {
|
|||
.driver.pm = YENTA_PM_OPS,
|
||||
};
|
||||
|
||||
|
||||
static int __init yenta_socket_init(void)
|
||||
{
|
||||
return pci_register_driver(¥ta_cardbus_driver);
|
||||
}
|
||||
|
||||
|
||||
static void __exit yenta_socket_exit(void)
|
||||
{
|
||||
pci_unregister_driver(¥ta_cardbus_driver);
|
||||
}
|
||||
|
||||
|
||||
module_init(yenta_socket_init);
|
||||
module_exit(yenta_socket_exit);
|
||||
module_pci_driver(yenta_cardbus_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
|
|||
Loading…
Reference in a new issue