diff options
-rw-r--r-- | drivers/pwm/sysfs.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/pwm/sysfs.c b/drivers/pwm/sysfs.c index 8c20332d4825..4bd0c639e16d 100644 --- a/drivers/pwm/sysfs.c +++ b/drivers/pwm/sysfs.c | |||
@@ -169,15 +169,7 @@ static struct attribute *pwm_attrs[] = { | |||
169 | &dev_attr_polarity.attr, | 169 | &dev_attr_polarity.attr, |
170 | NULL | 170 | NULL |
171 | }; | 171 | }; |
172 | 172 | ATTRIBUTE_GROUPS(pwm); | |
173 | static const struct attribute_group pwm_attr_group = { | ||
174 | .attrs = pwm_attrs, | ||
175 | }; | ||
176 | |||
177 | static const struct attribute_group *pwm_attr_groups[] = { | ||
178 | &pwm_attr_group, | ||
179 | NULL, | ||
180 | }; | ||
181 | 173 | ||
182 | static void pwm_export_release(struct device *child) | 174 | static void pwm_export_release(struct device *child) |
183 | { | 175 | { |
@@ -205,7 +197,7 @@ static int pwm_export_child(struct device *parent, struct pwm_device *pwm) | |||
205 | export->child.release = pwm_export_release; | 197 | export->child.release = pwm_export_release; |
206 | export->child.parent = parent; | 198 | export->child.parent = parent; |
207 | export->child.devt = MKDEV(0, 0); | 199 | export->child.devt = MKDEV(0, 0); |
208 | export->child.groups = pwm_attr_groups; | 200 | export->child.groups = pwm_groups; |
209 | dev_set_name(&export->child, "pwm%u", pwm->hwpwm); | 201 | dev_set_name(&export->child, "pwm%u", pwm->hwpwm); |
210 | 202 | ||
211 | ret = device_register(&export->child); | 203 | ret = device_register(&export->child); |