aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-isl12022.c
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/rtc/rtc-isl12022.c
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'drivers/rtc/rtc-isl12022.c')
-rw-r--r--drivers/rtc/rtc-isl12022.c14
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
312module_i2c_driver(isl12022_driver); 311static int __init isl12022_init(void)
312{
313 return i2c_add_driver(&isl12022_driver);
314}
315
316static void __exit isl12022_exit(void)
317{
318 i2c_del_driver(&isl12022_driver);
319}
320
321module_init(isl12022_init);
322module_exit(isl12022_exit);
313 323
314MODULE_AUTHOR("roman.fietze@telemotive.de"); 324MODULE_AUTHOR("roman.fietze@telemotive.de");
315MODULE_DESCRIPTION("ISL 12022 RTC driver"); 325MODULE_DESCRIPTION("ISL 12022 RTC driver");