Explorar o código

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>
Axel Lin %!s(int64=14) %!d(string=hai) anos
pai
achega
2f2233413a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/mfd/tps65911-comparator.c

+ 2 - 0
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;
 }