Skip to content

Commit

Permalink
hwmon: (i5500_temp) Convert to module_pci_driver
Browse files Browse the repository at this point in the history
Use module_pci_driver to simplify the code a bit.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
  • Loading branch information
AxelLin authored and jdelvare committed Jan 24, 2015
1 parent e3d9820 commit aef64d0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/hwmon/i5500_temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,8 @@ static struct pci_driver i5500_temp_driver = {
.probe = i5500_temp_probe,
};

static int __init i5500_temp_init(void)
{
return pci_register_driver(&i5500_temp_driver);
}

static void __exit i5500_temp_exit(void)
{
pci_unregister_driver(&i5500_temp_driver);
}
module_pci_driver(i5500_temp_driver);

MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>");
MODULE_DESCRIPTION("Intel 5500/5520/X58 chipset thermal sensor driver");
MODULE_LICENSE("GPL");

module_init(i5500_temp_init)
module_exit(i5500_temp_exit)

0 comments on commit aef64d0

Please sign in to comment.