]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging/phison: use module_pci_driver macro
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 10 Jul 2012 06:46:30 +0000 (12:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jul 2012 00:26:02 +0000 (17:26 -0700)
commitd44858a9b4abc1fb94f0dae587fbd1807bb3c576
tree3f0100c810e40a42de872d1d8bbc3449e1a7cff4
parent1cdb9c7c1d4846e04c28dbb41c6cef3a5e5f2b56
staging/phison: use module_pci_driver macro

remove the duplication of module_pci_driver and use this macro instead

module_pci_driver macro does the same things as the code below does

static int __init pci_test_dev_init(void)
{
       return pci_register_driver(&pci_test_driver_ops);
}

static void __exit pci_test_dev_exit(void)
{
       pci_unregister_driver(&pci_test_driver_ops);
}

module_init(pci_test_dev_init);
module_exit(pci_test_dev_exit);

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/phison/phison.c