diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-06 08:13:30 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-04-07 16:30:35 -0400 |
commit | 93baa65fe50a83056c97973de2300337b000472e (patch) | |
tree | e91ed77013c1219d2e90581a8b409ff779a92630 /drivers/gpio/gpio-bt8xx.c | |
parent | c29985dd3e26118c8ba64105e09b85b714462765 (diff) |
gpio: Convert drivers to use module_pci_driver()
This patch converts the drivers in drivers/gpio/* to use
module_pci_driver() macro which makes the code smaller and a bit
simpler by having less boilerplate.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-bt8xx.c')
-rw-r--r-- | drivers/gpio/gpio-bt8xx.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-bt8xx.c b/drivers/gpio/gpio-bt8xx.c index 5ca4098ba092..e4cc7eb69bb2 100644 --- a/drivers/gpio/gpio-bt8xx.c +++ b/drivers/gpio/gpio-bt8xx.c | |||
@@ -328,17 +328,7 @@ static struct pci_driver bt8xxgpio_pci_driver = { | |||
328 | .resume = bt8xxgpio_resume, | 328 | .resume = bt8xxgpio_resume, |
329 | }; | 329 | }; |
330 | 330 | ||
331 | static int __init bt8xxgpio_init(void) | 331 | module_pci_driver(bt8xxgpio_pci_driver); |
332 | { | ||
333 | return pci_register_driver(&bt8xxgpio_pci_driver); | ||
334 | } | ||
335 | module_init(bt8xxgpio_init) | ||
336 | |||
337 | static void __exit bt8xxgpio_exit(void) | ||
338 | { | ||
339 | pci_unregister_driver(&bt8xxgpio_pci_driver); | ||
340 | } | ||
341 | module_exit(bt8xxgpio_exit) | ||
342 | 332 | ||
343 | MODULE_LICENSE("GPL"); | 333 | MODULE_LICENSE("GPL"); |
344 | MODULE_AUTHOR("Michael Buesch"); | 334 | MODULE_AUTHOR("Michael Buesch"); |