rtc-isl1208: fix double removal of a sysfs entry
authorAlessandro Zummo <[email protected]>
Tue, 12 Aug 2008 22:08:44 +0000 (15:08 -0700)
committerLinus Torvalds <[email protected]>
Tue, 12 Aug 2008 23:07:28 +0000 (16:07 -0700)
Signed-off-by: Alessandro Zummo <[email protected]>
Cc: Herbert Valerio Riedel <[email protected]>
Cc: Hartley Sweeten <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-isl1208.c

index fbb90b1e40981f6fadfd4542e468ad35a3d70f4d..a81adab6e515849306d9fb9e245eebc0e8532784 100644 (file)
@@ -482,7 +482,7 @@ isl1208_sysfs_register(struct device *dev)
 static int
 isl1208_sysfs_unregister(struct device *dev)
 {
-       device_remove_file(dev, &dev_attr_atrim);
+       device_remove_file(dev, &dev_attr_dtrim);
        device_remove_file(dev, &dev_attr_atrim);
        device_remove_file(dev, &dev_attr_usr);