From: Alessandro Zummo Date: Tue, 12 Aug 2008 22:08:44 +0000 (-0700) Subject: rtc-isl1208: fix double removal of a sysfs entry X-Git-Tag: v2.6.27-rc3~35 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=001e979d8f0c8fa04b5f01e829805dcd49d9416b;p=linux-2.6 rtc-isl1208: fix double removal of a sysfs entry Signed-off-by: Alessandro Zummo Cc: Herbert Valerio Riedel Cc: Hartley Sweeten Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index fbb90b1e40..a81adab6e5 100644 --- a/drivers/rtc/rtc-isl1208.c +++ b/drivers/rtc/rtc-isl1208.c @@ -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);