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-x1205.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-x1205.c')
-rw-r--r-- | drivers/rtc/rtc-x1205.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c index 095282f63523..eaf55945f21b 100644 --- a/drivers/rtc/rtc-x1205.c +++ b/drivers/rtc/rtc-x1205.c | |||
@@ -494,7 +494,8 @@ static void x1205_sysfs_unregister(struct device *dev) | |||
494 | } | 494 | } |
495 | 495 | ||
496 | 496 | ||
497 | static int x1205_probe(struct i2c_client *client) | 497 | static int x1205_probe(struct i2c_client *client, |
498 | const struct i2c_device_id *id) | ||
498 | { | 499 | { |
499 | int err = 0; | 500 | int err = 0; |
500 | unsigned char sr; | 501 | unsigned char sr; |
@@ -552,12 +553,19 @@ static int x1205_remove(struct i2c_client *client) | |||
552 | return 0; | 553 | return 0; |
553 | } | 554 | } |
554 | 555 | ||
556 | static const struct i2c_device_id x1205_id[] = { | ||
557 | { "x1205", 0 }, | ||
558 | { } | ||
559 | }; | ||
560 | MODULE_DEVICE_TABLE(i2c, x1205_id); | ||
561 | |||
555 | static struct i2c_driver x1205_driver = { | 562 | static struct i2c_driver x1205_driver = { |
556 | .driver = { | 563 | .driver = { |
557 | .name = "rtc-x1205", | 564 | .name = "rtc-x1205", |
558 | }, | 565 | }, |
559 | .probe = x1205_probe, | 566 | .probe = x1205_probe, |
560 | .remove = x1205_remove, | 567 | .remove = x1205_remove, |
568 | .id_table = x1205_id, | ||
561 | }; | 569 | }; |
562 | 570 | ||
563 | static int __init x1205_init(void) | 571 | static int __init x1205_init(void) |