diff options
Diffstat (limited to 'drivers/i2c/chips')
-rw-r--r-- | drivers/i2c/chips/m41t00.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/i2c/chips/m41t00.c b/drivers/i2c/chips/m41t00.c index 2dd0a34d9472..420377c86422 100644 --- a/drivers/i2c/chips/m41t00.c +++ b/drivers/i2c/chips/m41t00.c | |||
@@ -215,8 +215,15 @@ m41t00_set(void *arg) | |||
215 | } | 215 | } |
216 | 216 | ||
217 | static ulong new_time; | 217 | static ulong new_time; |
218 | /* well, isn't this API just _lovely_? */ | ||
219 | static void | ||
220 | m41t00_barf(struct work_struct *unusable) | ||
221 | { | ||
222 | m41t00_set(&new_time); | ||
223 | } | ||
224 | |||
218 | static struct workqueue_struct *m41t00_wq; | 225 | static struct workqueue_struct *m41t00_wq; |
219 | static DECLARE_WORK(m41t00_work, m41t00_set, &new_time); | 226 | static DECLARE_WORK(m41t00_work, m41t00_barf); |
220 | 227 | ||
221 | int | 228 | int |
222 | m41t00_set_rtc_time(ulong nowtime) | 229 | m41t00_set_rtc_time(ulong nowtime) |