aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-piix4.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-07-24 08:13:56 -0400
committerJean Delvare <khali@endymion.delvare>2012-07-24 08:13:56 -0400
commit56f2178898ffca84dcdfb351f0127bf5732b1610 (patch)
tree783622f857e47791bed8ffa71959b8af951d117e /drivers/i2c/busses/i2c-piix4.c
parent83a638df36eee8b6b6aeda9d122359e55adad2a2 (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.c13
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
547static int __init i2c_piix4_init(void) 547module_pci_driver(piix4_driver);
548{
549 return pci_register_driver(&piix4_driver);
550}
551
552static void __exit i2c_piix4_exit(void)
553{
554 pci_unregister_driver(&piix4_driver);
555}
556 548
557MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " 549MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and "
558 "Philip Edelbrock <phil@netroedge.com>"); 550 "Philip Edelbrock <phil@netroedge.com>");
559MODULE_DESCRIPTION("PIIX4 SMBus driver"); 551MODULE_DESCRIPTION("PIIX4 SMBus driver");
560MODULE_LICENSE("GPL"); 552MODULE_LICENSE("GPL");
561
562module_init(i2c_piix4_init);
563module_exit(i2c_piix4_exit);