diff options
| author | Michael Opdenacker <michael.opdenacker@free-electrons.com> | 2014-10-15 03:45:50 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-10-17 11:55:32 -0400 |
| commit | b7983e3f89dd960b2a6d156fd2200548c3300428 (patch) | |
| tree | 91cde46bdcd8a183402ae16ba6fb227be3ca0f1e /drivers/atm | |
| parent | 2c6ba4b15b5ef38213b6c42ce09e9398f78cef9f (diff) | |
atm: simplify lanai.c by using module_pci_driver
This simplifies the lanai.c driver by using
the module_pci_driver() macro, at the expense
of losing only debugging messages.
Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
| -rw-r--r-- | drivers/atm/lanai.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c index fa7d701933ba..93eaf8d94492 100644 --- a/drivers/atm/lanai.c +++ b/drivers/atm/lanai.c | |||
| @@ -2614,27 +2614,7 @@ static struct pci_driver lanai_driver = { | |||
| 2614 | .probe = lanai_init_one, | 2614 | .probe = lanai_init_one, |
| 2615 | }; | 2615 | }; |
| 2616 | 2616 | ||
| 2617 | static int __init lanai_module_init(void) | 2617 | module_pci_driver(lanai_driver); |
| 2618 | { | ||
| 2619 | int x; | ||
| 2620 | |||
| 2621 | x = pci_register_driver(&lanai_driver); | ||
| 2622 | if (x != 0) | ||
| 2623 | printk(KERN_ERR DEV_LABEL ": no adapter found\n"); | ||
| 2624 | return x; | ||
| 2625 | } | ||
| 2626 | |||
| 2627 | static void __exit lanai_module_exit(void) | ||
| 2628 | { | ||
| 2629 | /* We'll only get called when all the interfaces are already | ||
| 2630 | * gone, so there isn't much to do | ||
| 2631 | */ | ||
| 2632 | DPRINTK("cleanup_module()\n"); | ||
| 2633 | pci_unregister_driver(&lanai_driver); | ||
| 2634 | } | ||
| 2635 | |||
| 2636 | module_init(lanai_module_init); | ||
| 2637 | module_exit(lanai_module_exit); | ||
| 2638 | 2618 | ||
| 2639 | MODULE_AUTHOR("Mitchell Blank Jr <mitch@sfgoth.com>"); | 2619 | MODULE_AUTHOR("Mitchell Blank Jr <mitch@sfgoth.com>"); |
| 2640 | MODULE_DESCRIPTION("Efficient Networks Speedstream 3010 driver"); | 2620 | MODULE_DESCRIPTION("Efficient Networks Speedstream 3010 driver"); |
