X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fsysfs.h;h=37fa24152bd810f7d9dd67b685e738179b5bfdf9;hb=d1d76714e2f0c520b6c2a84ab5b050d0b3244949;hp=27bad59dae7946b7a5386cd5e5daeb2fe3ee5c4e;hpb=b66e1f11ebc429569a3784aaf64123633d9e3ed1;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 27bad59dae7..37fa24152bd 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -101,6 +101,9 @@ void sysfs_remove_bin_file(struct kobject *kobj, struct bin_attribute *attr); int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target, const char *name); +int __must_check sysfs_create_link_nowarn(struct kobject *kobj, + struct kobject *target, + const char *name); void sysfs_remove_link(struct kobject *kobj, const char *name); int __must_check sysfs_create_group(struct kobject *kobj, @@ -180,18 +183,19 @@ static inline int sysfs_create_link(struct kobject *kobj, return 0; } -static inline void sysfs_remove_link(struct kobject *kobj, const char *name) +static inline int sysfs_create_link_nowarn(struct kobject *kobj, + struct kobject *target, + const char *name) { + return 0; } -static inline int sysfs_create_group(struct kobject *kobj, - const struct attribute_group *grp) +static inline void sysfs_remove_link(struct kobject *kobj, const char *name) { - return 0; } -static inline int sysfs_update_group(struct kobject *kobj, - const struct attribute_group *grp) +static inline int sysfs_create_group(struct kobject *kobj, + const struct attribute_group *grp) { return 0; }