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-isl1208.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-isl1208.c')
-rw-r--r-- | drivers/rtc/rtc-isl1208.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index fb15e3fb4ce2..fbb90b1e4098 100644 --- a/drivers/rtc/rtc-isl1208.c +++ b/drivers/rtc/rtc-isl1208.c | |||
@@ -490,7 +490,7 @@ isl1208_sysfs_unregister(struct device *dev) | |||
490 | } | 490 | } |
491 | 491 | ||
492 | static int | 492 | static int |
493 | isl1208_probe(struct i2c_client *client) | 493 | isl1208_probe(struct i2c_client *client, const struct i2c_device_id *id) |
494 | { | 494 | { |
495 | int rc = 0; | 495 | int rc = 0; |
496 | struct rtc_device *rtc; | 496 | struct rtc_device *rtc; |
@@ -545,12 +545,19 @@ isl1208_remove(struct i2c_client *client) | |||
545 | return 0; | 545 | return 0; |
546 | } | 546 | } |
547 | 547 | ||
548 | static const struct i2c_device_id isl1208_id[] = { | ||
549 | { "isl1208", 0 }, | ||
550 | { } | ||
551 | }; | ||
552 | MODULE_DEVICE_TABLE(i2c, isl1208_id); | ||
553 | |||
548 | static struct i2c_driver isl1208_driver = { | 554 | static struct i2c_driver isl1208_driver = { |
549 | .driver = { | 555 | .driver = { |
550 | .name = "rtc-isl1208", | 556 | .name = "rtc-isl1208", |
551 | }, | 557 | }, |
552 | .probe = isl1208_probe, | 558 | .probe = isl1208_probe, |
553 | .remove = isl1208_remove, | 559 | .remove = isl1208_remove, |
560 | .id_table = isl1208_id, | ||
554 | }; | 561 | }; |
555 | 562 | ||
556 | static int __init | 563 | static int __init |