summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65911-comparator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-06-23 10:19:16 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-31 23:28:24 +0200
commit2f2233413a7aab688e6484abf0941f8ca34da1bd (patch)
tree330d23e79fea4c67b9b09ed60e9afe2e7959aa0a /drivers/mfd/tps65911-comparator.c
parent5608801baf0ffd06a428de3496fa10b3b7d789e9 (diff)
downloadlinux-stable-2f2233413a7aab688e6484abf0941f8ca34da1bd.tar.gz
linux-stable-2f2233413a7aab688e6484abf0941f8ca34da1bd.tar.bz2
linux-stable-2f2233413a7aab688e6484abf0941f8ca34da1bd.zip
mfd: Remove comp{1,2}_threshold sysfs entries in tps65911_comparator_remove
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps65911-comparator.c')
-rw-r--r--drivers/mfd/tps65911-comparator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/tps65911-comparator.c b/drivers/mfd/tps65911-comparator.c
index 283ac6759757..e7ff783aa31e 100644
--- a/drivers/mfd/tps65911-comparator.c
+++ b/drivers/mfd/tps65911-comparator.c
@@ -157,6 +157,8 @@ static __devexit int tps65911_comparator_remove(struct platform_device *pdev)
struct tps65910 *tps65910;
tps65910 = dev_get_drvdata(pdev->dev.parent);
+ device_remove_file(&pdev->dev, &dev_attr_comp2_threshold);
+ device_remove_file(&pdev->dev, &dev_attr_comp1_threshold);
return 0;
}