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-piix4.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-piix4.c')
-rw-r--r-- | drivers/i2c/busses/i2c-piix4.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c index c14d48dd601a..46833fa7a3e0 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c | |||
@@ -544,20 +544,9 @@ static struct pci_driver piix4_driver = { | |||
544 | .remove = __devexit_p(piix4_remove), | 544 | .remove = __devexit_p(piix4_remove), |
545 | }; | 545 | }; |
546 | 546 | ||
547 | static int __init i2c_piix4_init(void) | 547 | module_pci_driver(piix4_driver); |
548 | { | ||
549 | return pci_register_driver(&piix4_driver); | ||
550 | } | ||
551 | |||
552 | static void __exit i2c_piix4_exit(void) | ||
553 | { | ||
554 | pci_unregister_driver(&piix4_driver); | ||
555 | } | ||
556 | 548 | ||
557 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " | 549 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " |
558 | "Philip Edelbrock <phil@netroedge.com>"); | 550 | "Philip Edelbrock <phil@netroedge.com>"); |
559 | MODULE_DESCRIPTION("PIIX4 SMBus driver"); | 551 | MODULE_DESCRIPTION("PIIX4 SMBus driver"); |
560 | MODULE_LICENSE("GPL"); | 552 | MODULE_LICENSE("GPL"); |
561 | |||
562 | module_init(i2c_piix4_init); | ||
563 | module_exit(i2c_piix4_exit); | ||