diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:48:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:48:31 -0400 |
commit | b57ab7632b8fc1eef139bbbb7a89002be61f99e1 (patch) | |
tree | 19d4eeea0dbf721312c4e33a423ed29ff70aff88 /drivers/rtc/rtc-ds1374.c | |
parent | f12c03722045882a50c270f6332cf2c7b16a83d2 (diff) | |
parent | 3760f736716f74bdc62a4ba5406934338da93eb2 (diff) |
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
i2c: Convert most new-style drivers to use module aliasing
i2c: Add support for device alias names
i2c-amd756-s4882: Fix an error path
i2c: Drop unused RTC driver IDs
i2c/tps65010: Add missing intialization of client data
i2c-sis5595: Minor cleanups in sis5595_access
i2c-piix4: Minor cleanups
i2c: Spelling fix (successful)
i2c-stub: No newline in parameter description
Diffstat (limited to 'drivers/rtc/rtc-ds1374.c')
-rw-r--r-- | drivers/rtc/rtc-ds1374.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c index 45bda186befc..fa2d2f8b3f4d 100644 --- a/drivers/rtc/rtc-ds1374.c +++ b/drivers/rtc/rtc-ds1374.c | |||
@@ -41,6 +41,12 @@ | |||
41 | #define DS1374_REG_SR_AF 0x01 /* Alarm Flag */ | 41 | #define DS1374_REG_SR_AF 0x01 /* Alarm Flag */ |
42 | #define DS1374_REG_TCR 0x09 /* Trickle Charge */ | 42 | #define DS1374_REG_TCR 0x09 /* Trickle Charge */ |
43 | 43 | ||
44 | static const struct i2c_device_id ds1374_id[] = { | ||
45 | { "rtc-ds1374", 0 }, | ||
46 | { } | ||
47 | }; | ||
48 | MODULE_DEVICE_TABLE(i2c, ds1374_id); | ||
49 | |||
44 | struct ds1374 { | 50 | struct ds1374 { |
45 | struct i2c_client *client; | 51 | struct i2c_client *client; |
46 | struct rtc_device *rtc; | 52 | struct rtc_device *rtc; |
@@ -355,7 +361,8 @@ static const struct rtc_class_ops ds1374_rtc_ops = { | |||
355 | .ioctl = ds1374_ioctl, | 361 | .ioctl = ds1374_ioctl, |
356 | }; | 362 | }; |
357 | 363 | ||
358 | static int ds1374_probe(struct i2c_client *client) | 364 | static int ds1374_probe(struct i2c_client *client, |
365 | const struct i2c_device_id *id) | ||
359 | { | 366 | { |
360 | struct ds1374 *ds1374; | 367 | struct ds1374 *ds1374; |
361 | int ret; | 368 | int ret; |
@@ -429,6 +436,7 @@ static struct i2c_driver ds1374_driver = { | |||
429 | }, | 436 | }, |
430 | .probe = ds1374_probe, | 437 | .probe = ds1374_probe, |
431 | .remove = __devexit_p(ds1374_remove), | 438 | .remove = __devexit_p(ds1374_remove), |
439 | .id_table = ds1374_id, | ||
432 | }; | 440 | }; |
433 | 441 | ||
434 | static int __init ds1374_init(void) | 442 | static int __init ds1374_init(void) |