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-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=001e979d8f0c8fa04b5f01e829805dcd49d9416b;p=openwrt%2Fstaging%2Fblogic.git 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 fbb90b1e4098..a81adab6e515 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);