Hi Jean: * Jean Delvare <khali at linux-fr.org> [2007-10-22 17:46:17 +0200]: > The early revisions of the GL518SM do not report voltage values for > the first 3 voltage channels. We should not create sysfs attributes > for these missing features. > > Signed-off-by: Jean Delvare <khali at linux-fr.org> > --- > drivers/hwmon/gl518sm.c | 23 +++++++++++++++++++---- > 1 file changed, 19 insertions(+), 4 deletions(-) Applied to hwmon-2.6.git/testing, thanks. One minor comment though... > @@ -496,6 +509,8 @@ static int gl518_detach_client(struct i2 > > hwmon_device_unregister(data->hwmon_dev); > sysfs_remove_group(&client->dev.kobj, &gl518_group); > + if (data->type == gl518sm_r80) > + sysfs_remove_group(&client->dev.kobj, &gl518_group_r80); > > if ((err = i2c_detach_client(client))) > return err; Don't forget: you can do sysfs_remove_group() unconditionally. -- Mark M. Hoffman mhoffman at lightlink.com