diff options
| -rw-r--r-- | drivers/base/sys.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/base/sys.c b/drivers/base/sys.c index 34001cb52fa1..9562c6b4d5fc 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c @@ -62,6 +62,19 @@ static struct kobj_type ktype_sysdev = { .sysfs_ops = &sysfs_ops, }; + +int sysdev_create_file(struct sys_device * s, struct sysdev_attribute * a) +{ + return sysfs_create_file(&s->kobj,&a->attr); +} + + +void sysdev_remove_file(struct sys_device * s, struct sysdev_attribute * a) +{ + sysfs_remove_file(&s->kobj,&a->attr); +} + + /* * declare system_subsys */ |
