diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-24 08:13:56 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2012-07-24 08:13:56 -0400 |
commit | 56f2178898ffca84dcdfb351f0127bf5732b1610 (patch) | |
tree | 783622f857e47791bed8ffa71959b8af951d117e /drivers/i2c/busses/i2c-amd756.c | |
parent | 83a638df36eee8b6b6aeda9d122359e55adad2a2 (diff) |
i2c/busses: Use module_pci_driver
Convert the drivers in drivers/i2c/busses/* to usemodule_pci_driver()
macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Rudolf Marek <r.marek@assembler.cz>
Cc: Olof Johansson <olof@lixom.net>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Diffstat (limited to 'drivers/i2c/busses/i2c-amd756.c')
-rw-r--r-- | drivers/i2c/busses/i2c-amd756.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/i2c/busses/i2c-amd756.c b/drivers/i2c/busses/i2c-amd756.c index eb778bf15c18..304aa03b57b2 100644 --- a/drivers/i2c/busses/i2c-amd756.c +++ b/drivers/i2c/busses/i2c-amd756.c | |||
@@ -410,21 +410,10 @@ static struct pci_driver amd756_driver = { | |||
410 | .remove = __devexit_p(amd756_remove), | 410 | .remove = __devexit_p(amd756_remove), |
411 | }; | 411 | }; |
412 | 412 | ||
413 | static int __init amd756_init(void) | 413 | module_pci_driver(amd756_driver); |
414 | { | ||
415 | return pci_register_driver(&amd756_driver); | ||
416 | } | ||
417 | |||
418 | static void __exit amd756_exit(void) | ||
419 | { | ||
420 | pci_unregister_driver(&amd756_driver); | ||
421 | } | ||
422 | 414 | ||
423 | MODULE_AUTHOR("Merlin Hughes <merlin@merlin.org>"); | 415 | MODULE_AUTHOR("Merlin Hughes <merlin@merlin.org>"); |
424 | MODULE_DESCRIPTION("AMD756/766/768/8111 and nVidia nForce SMBus driver"); | 416 | MODULE_DESCRIPTION("AMD756/766/768/8111 and nVidia nForce SMBus driver"); |
425 | MODULE_LICENSE("GPL"); | 417 | MODULE_LICENSE("GPL"); |
426 | 418 | ||
427 | EXPORT_SYMBOL(amd756_smbus); | 419 | EXPORT_SYMBOL(amd756_smbus); |
428 | |||
429 | module_init(amd756_init) | ||
430 | module_exit(amd756_exit) | ||