On Tue, 1 Feb 2005 11:11:35 +0100, Aurelien Jarno wrote: > Please find below the new version of the patch against kernel > 2.6.11-rc2-mm2 to add the sis5595 driver (sensor part). > --- linux-2.6.11-rc2-mm2.orig/drivers/i2c/chips/sis5595.c > +++ linux-2.6.11-rc2-mm2/drivers/i2c/chips/sis5595.c > +struct sis5595_data { > + char valid; /* !=0 if following fields are valid */ > +}; > +static struct sis5595_data *sis5595_update_device(struct device *dev) > +{ > + if ((jiffies - data->last_updated > HZ + HZ / 2) || > + (jiffies < data->last_updated) || !data->valid) { [snip reading some values] > + data->last_updated = jiffies; > + data->valid = 1; > + } > +} Maybe you should call sis5595_update_device() in initialization finction and get rid of "value" field. It's sole purpose to fill "struct sis5595" when it's known that "last_updated" field contains crap. > + dev_err(&s_bridge->dev, "sis5595.ko: Error: Looked for SIS5595 but found unsupported device %.4X\n", *i); > + dev_err(&s_bridge->dev, "sis5595.ko: base address not set - upgrade BIOS or use force_addr=0xaddr\n"); ".ko" isn't needed. "Error: " in the first line too. Alexey - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/