X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fsysfs%2Fdir.c;h=610b5bdbe75bc1a04c870a3def601b9b666a1772;hb=71601e2b33dad9acb8d7844f7321f90ed9d1bce8;hp=f26880a4785eec127e80ce736144624c3016098c;hpb=4b6f5d20b04dcbc3d888555522b90ba6d36c4106;p=karo-tx-linux.git diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index f26880a4785e..610b5bdbe75b 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c @@ -43,6 +43,7 @@ static struct sysfs_dirent * sysfs_new_dirent(struct sysfs_dirent * parent_sd, memset(sd, 0, sizeof(*sd)); atomic_set(&sd->s_count, 1); + atomic_set(&sd->s_event, 0); INIT_LIST_HEAD(&sd->s_children); list_add(&sd->s_sibling, &parent_sd->s_children); sd->s_element = element; @@ -50,7 +51,7 @@ static struct sysfs_dirent * sysfs_new_dirent(struct sysfs_dirent * parent_sd, return sd; } -/** +/* * * Return -EEXIST if there is already a sysfs element with the same name for * the same parent.