mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
[PATCH] firmware/dcdbas: fix bug in error cleanup
The error path path mistakenly called sysfs_create_group() rather than sysfs_remove_group(). They take the same arguments, so it's easy to cut-n-paste such a bug. Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
15e541feb3
commit
0968cf51b6
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ static int __devinit dcdbas_probe(struct platform_device *dev)
|
||||||
while (--i >= 0)
|
while (--i >= 0)
|
||||||
sysfs_remove_bin_file(&dev->dev.kobj,
|
sysfs_remove_bin_file(&dev->dev.kobj,
|
||||||
dcdbas_bin_attrs[i]);
|
dcdbas_bin_attrs[i]);
|
||||||
sysfs_create_group(&dev->dev.kobj, &dcdbas_attr_group);
|
sysfs_remove_group(&dev->dev.kobj, &dcdbas_attr_group);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue