1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 06:15:21 +02:00
openwrt-xburst/target/linux/generic-2.6/patches-2.6.27/091-ds1672_missing_id_table.patch
kaloz 4a74c7b9a1 backport the new style ds1672 driver and switch to it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13457 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-01 20:23:43 +00:00

22 lines
437 B
Diff

--- a/drivers/rtc/rtc-ds1672.c
+++ b/drivers/rtc/rtc-ds1672.c
@@ -209,12 +209,18 @@ static int ds1672_probe(struct i2c_clien
return err;
}
+static struct i2c_device_id ds1672_id[] = {
+ { "ds1672", 0 },
+ { }
+};
+
static struct i2c_driver ds1672_driver = {
.driver = {
.name = "rtc-ds1672",
},
.probe = &ds1672_probe,
.remove = &ds1672_remove,
+ .id_table = ds1672_id,
};
static int __init ds1672_init(void)