* [PATCH 09/24] drivers/pci/ioapic: Convert to module_pci_driver
@ 2013-05-27 2:28 Libo Chen
2013-05-27 23:06 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Libo Chen @ 2013-05-27 2:28 UTC (permalink / raw)
To: bhelgaas; +Cc: linux-pci, linux-kernel, lizefan, libo.chen, gregkh
use module_pci_driver instead of init/exit, make code clean.
Signed-off-by: Libo Chen <libo.chen@huawei.com>
---
drivers/pci/ioapic.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/drivers/pci/ioapic.c b/drivers/pci/ioapic.c
index 3c6bbdd..1b90579 100644
--- a/drivers/pci/ioapic.c
+++ b/drivers/pci/ioapic.c
@@ -113,17 +113,6 @@ static struct pci_driver ioapic_driver = {
.remove = ioapic_remove,
};
-static int __init ioapic_init(void)
-{
- return pci_register_driver(&ioapic_driver);
-}
-
-static void __exit ioapic_exit(void)
-{
- pci_unregister_driver(&ioapic_driver);
-}
-
-module_init(ioapic_init);
-module_exit(ioapic_exit);
+module_pci_driver(ioapic_driver);
MODULE_LICENSE("GPL");
--
1.7.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 09/24] drivers/pci/ioapic: Convert to module_pci_driver
2013-05-27 2:28 [PATCH 09/24] drivers/pci/ioapic: Convert to module_pci_driver Libo Chen
@ 2013-05-27 23:06 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2013-05-27 23:06 UTC (permalink / raw)
To: Libo Chen; +Cc: linux-pci, linux-kernel, Li Zefan, Greg Kroah-Hartman
On Sun, May 26, 2013 at 8:28 PM, Libo Chen <libo.chen@huawei.com> wrote:
> use module_pci_driver instead of init/exit, make code clean.
>
> Signed-off-by: Libo Chen <libo.chen@huawei.com>
> ---
> drivers/pci/ioapic.c | 13 +------------
> 1 files changed, 1 insertions(+), 12 deletions(-)
Applied to my pci/misc branch for v3.11, thanks!
> diff --git a/drivers/pci/ioapic.c b/drivers/pci/ioapic.c
> index 3c6bbdd..1b90579 100644
> --- a/drivers/pci/ioapic.c
> +++ b/drivers/pci/ioapic.c
> @@ -113,17 +113,6 @@ static struct pci_driver ioapic_driver = {
> .remove = ioapic_remove,
> };
>
> -static int __init ioapic_init(void)
> -{
> - return pci_register_driver(&ioapic_driver);
> -}
> -
> -static void __exit ioapic_exit(void)
> -{
> - pci_unregister_driver(&ioapic_driver);
> -}
> -
> -module_init(ioapic_init);
> -module_exit(ioapic_exit);
> +module_pci_driver(ioapic_driver);
>
> MODULE_LICENSE("GPL");
> --
> 1.7.1
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-27 23:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-27 2:28 [PATCH 09/24] drivers/pci/ioapic: Convert to module_pci_driver Libo Chen
2013-05-27 23:06 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome