|
@@ -373,7 +373,7 @@ static int w1_f29_add_slave(struct w1_slave *sl)
|
|
static void w1_f29_remove_slave(struct w1_slave *sl)
|
|
static void w1_f29_remove_slave(struct w1_slave *sl)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
- for (i = NB_SYSFS_BIN_FILES; i <= 0; --i)
|
|
|
|
|
|
+ for (i = NB_SYSFS_BIN_FILES - 1; i >= 0; --i)
|
|
sysfs_remove_bin_file(&sl->dev.kobj,
|
|
sysfs_remove_bin_file(&sl->dev.kobj,
|
|
&(w1_f29_sysfs_bin_files[i]));
|
|
&(w1_f29_sysfs_bin_files[i]));
|
|
}
|
|
}
|