Skip to contentSkip to conversation

HID: fixed typos from last commits regarding sysfs bin attr groups

PATCH In review Stefan Achatz 1 participant 1 message Nov 15, 2010

Subsystems (3)
lore
Share & tools
lore

Stefan Achatz

author maintainer
#0 lore raw

PATCH 1/3 HID: fixed typos from last commits regarding sysfs bin attr groups

Added a 'static' where it belongs and changed a function call to use the right one.

---
 drivers/hid/hid-roccat-kone.c |    2 +-
 fs/sysfs/group.c              |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/hid/hid-roccat-kone.c +1 -1
index ccb5724..799dc80 100644
@@ -695,7 +695,7 @@ exit_1:
 
 static void kone_remove_sysfs_attributes(struct usb_interface *intf)
 {
-	sysfs_remove_group(&intf->dev.kobj, &kone_bin_attribute_group);
+	sysfs_remove_bin_group(&intf->dev.kobj, &kone_bin_attribute_group);
 	sysfs_remove_group(&intf->dev.kobj, &kone_attribute_group);
 }
 
fs/sysfs/group.c +1 -1
index 841baed..7e60e9c 100644
@@ -167,7 +167,7 @@ void sysfs_remove_bin_group(struct kobject * kobj,
 }
 EXPORT_SYMBOL_GPL(sysfs_remove_bin_group);
 
-int internal_merge_group(struct kobject *kobj,
+static int internal_merge_group(struct kobject *kobj,
 		       const struct attribute_group *grp, int type)
 {
 	struct sysfs_dirent *dir_sd;
Signature · 1 line
1.7.2.3