Commit fe102c71 authored by Alessandro Zummo's avatar Alessandro Zummo Committed by Linus Torvalds

rtc: fix missing id_table in rtc-ds1672 and rtc-max6900 drivers

Add missing id_table to the drivers in subject.  Patch is against the
latest git.  It should go in with 2.6.28 if possible, the drivers won't
work without the id_table bits.
Signed-off-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Reported-by: default avatarImre Kaloz <kaloz@openwrt.org>
Tested-by: default avatarImre Kaloz <kaloz@openwrt.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fbb5b7ae
...@@ -209,12 +209,18 @@ static int ds1672_probe(struct i2c_client *client, ...@@ -209,12 +209,18 @@ static int ds1672_probe(struct i2c_client *client,
return err; return err;
} }
static struct i2c_device_id ds1672_id[] = {
{ "ds1672", 0 },
{ }
};
static struct i2c_driver ds1672_driver = { static struct i2c_driver ds1672_driver = {
.driver = { .driver = {
.name = "rtc-ds1672", .name = "rtc-ds1672",
}, },
.probe = &ds1672_probe, .probe = &ds1672_probe,
.remove = &ds1672_remove, .remove = &ds1672_remove,
.id_table = ds1672_id,
}; };
static int __init ds1672_init(void) static int __init ds1672_init(void)
......
...@@ -247,12 +247,18 @@ max6900_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -247,12 +247,18 @@ max6900_probe(struct i2c_client *client, const struct i2c_device_id *id)
return 0; return 0;
} }
static struct i2c_device_id max6900_id[] = {
{ "max6900", 0 },
{ }
};
static struct i2c_driver max6900_driver = { static struct i2c_driver max6900_driver = {
.driver = { .driver = {
.name = "rtc-max6900", .name = "rtc-max6900",
}, },
.probe = max6900_probe, .probe = max6900_probe,
.remove = max6900_remove, .remove = max6900_remove,
.id_table = max6900_id,
}; };
static int __init max6900_init(void) static int __init max6900_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment