diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/rtc/rtc-isl12022.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/rtc/rtc-isl12022.c')
-rw-r--r-- | drivers/rtc/rtc-isl12022.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-isl12022.c b/drivers/rtc/rtc-isl12022.c index 1850104705c..ddbc797ea6c 100644 --- a/drivers/rtc/rtc-isl12022.c +++ b/drivers/rtc/rtc-isl12022.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/bcd.h> | 15 | #include <linux/bcd.h> |
16 | #include <linux/rtc.h> | 16 | #include <linux/rtc.h> |
17 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
18 | #include <linux/module.h> | ||
19 | 18 | ||
20 | #define DRV_VERSION "0.1" | 19 | #define DRV_VERSION "0.1" |
21 | 20 | ||
@@ -309,7 +308,18 @@ static struct i2c_driver isl12022_driver = { | |||
309 | .id_table = isl12022_id, | 308 | .id_table = isl12022_id, |
310 | }; | 309 | }; |
311 | 310 | ||
312 | module_i2c_driver(isl12022_driver); | 311 | static int __init isl12022_init(void) |
312 | { | ||
313 | return i2c_add_driver(&isl12022_driver); | ||
314 | } | ||
315 | |||
316 | static void __exit isl12022_exit(void) | ||
317 | { | ||
318 | i2c_del_driver(&isl12022_driver); | ||
319 | } | ||
320 | |||
321 | module_init(isl12022_init); | ||
322 | module_exit(isl12022_exit); | ||
313 | 323 | ||
314 | MODULE_AUTHOR("roman.fietze@telemotive.de"); | 324 | MODULE_AUTHOR("roman.fietze@telemotive.de"); |
315 | MODULE_DESCRIPTION("ISL 12022 RTC driver"); | 325 | MODULE_DESCRIPTION("ISL 12022 RTC driver"); |