projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hwmon: convert drivers/hwmon/* to use module_i2c_driver()
[deliverable/linux.git]
/
drivers
/
hwmon
/
ds620.c
diff --git
a/drivers/hwmon/ds620.c
b/drivers/hwmon/ds620.c
index 300c3d4d67df21331a6e9ac410755b692b553a43..50663efad4121a76535f4a9553f5a7873ea47513 100644
(file)
--- a/
drivers/hwmon/ds620.c
+++ b/
drivers/hwmon/ds620.c
@@
-297,19
+297,8
@@
static struct i2c_driver ds620_driver = {
.id_table = ds620_id,
};
.id_table = ds620_id,
};
-static int __init ds620_init(void)
-{
- return i2c_add_driver(&ds620_driver);
-}
-
-static void __exit ds620_exit(void)
-{
- i2c_del_driver(&ds620_driver);
-}
+module_i2c_driver(ds620_driver);
MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>");
MODULE_DESCRIPTION("DS620 driver");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>");
MODULE_DESCRIPTION("DS620 driver");
MODULE_LICENSE("GPL");
-
-module_init(ds620_init);
-module_exit(ds620_exit);
This page took
0.039476 seconds
and
5
git commands to generate.