diff options
Diffstat (limited to 'net/sched/cls_cgroup.c')
-rw-r--r-- | net/sched/cls_cgroup.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 024df8a32275..7743ea8d1d38 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c | |||
@@ -70,21 +70,17 @@ static struct cftype ss_files[] = { | |||
70 | .read_u64 = read_classid, | 70 | .read_u64 = read_classid, |
71 | .write_u64 = write_classid, | 71 | .write_u64 = write_classid, |
72 | }, | 72 | }, |
73 | { } /* terminate */ | ||
73 | }; | 74 | }; |
74 | 75 | ||
75 | static int cgrp_populate(struct cgroup_subsys *ss, struct cgroup *cgrp) | ||
76 | { | ||
77 | return cgroup_add_files(cgrp, ss, ss_files, ARRAY_SIZE(ss_files)); | ||
78 | } | ||
79 | |||
80 | struct cgroup_subsys net_cls_subsys = { | 76 | struct cgroup_subsys net_cls_subsys = { |
81 | .name = "net_cls", | 77 | .name = "net_cls", |
82 | .create = cgrp_create, | 78 | .create = cgrp_create, |
83 | .destroy = cgrp_destroy, | 79 | .destroy = cgrp_destroy, |
84 | .populate = cgrp_populate, | ||
85 | #ifdef CONFIG_NET_CLS_CGROUP | 80 | #ifdef CONFIG_NET_CLS_CGROUP |
86 | .subsys_id = net_cls_subsys_id, | 81 | .subsys_id = net_cls_subsys_id, |
87 | #endif | 82 | #endif |
83 | .base_cftypes = ss_files, | ||
88 | .module = THIS_MODULE, | 84 | .module = THIS_MODULE, |
89 | }; | 85 | }; |
90 | 86 | ||