mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
hwmon: (i5500_temp) Convert to module_pci_driver
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>
This commit is contained in:
parent
e3d982034d
commit
aef64d0d38
1 changed files with 1 additions and 12 deletions
|
@ -149,19 +149,8 @@ static struct pci_driver i5500_temp_driver = {
|
||||||
.probe = i5500_temp_probe,
|
.probe = i5500_temp_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init i5500_temp_init(void)
|
module_pci_driver(i5500_temp_driver);
|
||||||
{
|
|
||||||
return pci_register_driver(&i5500_temp_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit i5500_temp_exit(void)
|
|
||||||
{
|
|
||||||
pci_unregister_driver(&i5500_temp_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>");
|
MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>");
|
||||||
MODULE_DESCRIPTION("Intel 5500/5520/X58 chipset thermal sensor driver");
|
MODULE_DESCRIPTION("Intel 5500/5520/X58 chipset thermal sensor driver");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
module_init(i5500_temp_init)
|
|
||||||
module_exit(i5500_temp_exit)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue