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-bq32k.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/rtc/rtc-bq32k.c')
-rw-r--r-- | drivers/rtc/rtc-bq32k.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c index 036cb89f818..408cc8f735b 100644 --- a/drivers/rtc/rtc-bq32k.c +++ b/drivers/rtc/rtc-bq32k.c | |||
@@ -163,7 +163,7 @@ static int bq32k_probe(struct i2c_client *client, | |||
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | static int bq32k_remove(struct i2c_client *client) | 166 | static int __devexit bq32k_remove(struct i2c_client *client) |
167 | { | 167 | { |
168 | struct rtc_device *rtc = i2c_get_clientdata(client); | 168 | struct rtc_device *rtc = i2c_get_clientdata(client); |
169 | 169 | ||
@@ -183,11 +183,21 @@ static struct i2c_driver bq32k_driver = { | |||
183 | .owner = THIS_MODULE, | 183 | .owner = THIS_MODULE, |
184 | }, | 184 | }, |
185 | .probe = bq32k_probe, | 185 | .probe = bq32k_probe, |
186 | .remove = bq32k_remove, | 186 | .remove = __devexit_p(bq32k_remove), |
187 | .id_table = bq32k_id, | 187 | .id_table = bq32k_id, |
188 | }; | 188 | }; |
189 | 189 | ||
190 | module_i2c_driver(bq32k_driver); | 190 | static __init int bq32k_init(void) |
191 | { | ||
192 | return i2c_add_driver(&bq32k_driver); | ||
193 | } | ||
194 | module_init(bq32k_init); | ||
195 | |||
196 | static __exit void bq32k_exit(void) | ||
197 | { | ||
198 | i2c_del_driver(&bq32k_driver); | ||
199 | } | ||
200 | module_exit(bq32k_exit); | ||
191 | 201 | ||
192 | MODULE_AUTHOR("Semihalf, Piotr Ziecik <kosmo@semihalf.com>"); | 202 | MODULE_AUTHOR("Semihalf, Piotr Ziecik <kosmo@semihalf.com>"); |
193 | MODULE_DESCRIPTION("TI BQ32000 I2C RTC driver"); | 203 | MODULE_DESCRIPTION("TI BQ32000 I2C RTC driver"); |