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-pasemi.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-pasemi.c')
-rw-r--r-- | drivers/i2c/busses/i2c-pasemi.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/i2c/busses/i2c-pasemi.c b/drivers/i2c/busses/i2c-pasemi.c index eaaea73209c5..12edefd4183a 100644 --- a/drivers/i2c/busses/i2c-pasemi.c +++ b/drivers/i2c/busses/i2c-pasemi.c | |||
@@ -415,19 +415,8 @@ static struct pci_driver pasemi_smb_driver = { | |||
415 | .remove = __devexit_p(pasemi_smb_remove), | 415 | .remove = __devexit_p(pasemi_smb_remove), |
416 | }; | 416 | }; |
417 | 417 | ||
418 | static int __init pasemi_smb_init(void) | 418 | module_pci_driver(pasemi_smb_driver); |
419 | { | ||
420 | return pci_register_driver(&pasemi_smb_driver); | ||
421 | } | ||
422 | |||
423 | static void __exit pasemi_smb_exit(void) | ||
424 | { | ||
425 | pci_unregister_driver(&pasemi_smb_driver); | ||
426 | } | ||
427 | 419 | ||
428 | MODULE_LICENSE("GPL"); | 420 | MODULE_LICENSE("GPL"); |
429 | MODULE_AUTHOR ("Olof Johansson <olof@lixom.net>"); | 421 | MODULE_AUTHOR ("Olof Johansson <olof@lixom.net>"); |
430 | MODULE_DESCRIPTION("PA Semi PWRficient SMBus driver"); | 422 | MODULE_DESCRIPTION("PA Semi PWRficient SMBus driver"); |
431 | |||
432 | module_init(pasemi_smb_init); | ||
433 | module_exit(pasemi_smb_exit); | ||