diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-07 02:55:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-16 21:36:04 -0400 |
commit | 00173146897b15b07b8be6c95dd74486e530825d (patch) | |
tree | ddd3da3e0303680a05c8697a1523a8e98bbab71b | |
parent | 85dd92686ffe774363330a6839a3fb9c78f19cf8 (diff) |
hsi: convert bus code to use dev_groups
The dev_attrs field of struct bus_type is going away soon, dev_groups
should be used instead. This converts the hsi code to use the
correct field.
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/hsi/hsi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi.c index 66d44581e1b1..749f7b5c8179 100644 --- a/drivers/hsi/hsi.c +++ b/drivers/hsi/hsi.c | |||
@@ -33,11 +33,13 @@ static ssize_t modalias_show(struct device *dev, | |||
33 | { | 33 | { |
34 | return sprintf(buf, "hsi:%s\n", dev_name(dev)); | 34 | return sprintf(buf, "hsi:%s\n", dev_name(dev)); |
35 | } | 35 | } |
36 | static DEVICE_ATTR_RO(modalias); | ||
36 | 37 | ||
37 | static struct device_attribute hsi_bus_dev_attrs[] = { | 38 | static struct attribute *hsi_bus_dev_attrs[] = { |
38 | __ATTR_RO(modalias), | 39 | &dev_attr_modalias.attr, |
39 | __ATTR_NULL, | 40 | NULL, |
40 | }; | 41 | }; |
42 | ATTRIBUTE_GROUPS(hsi_bus_dev); | ||
41 | 43 | ||
42 | static int hsi_bus_uevent(struct device *dev, struct kobj_uevent_env *env) | 44 | static int hsi_bus_uevent(struct device *dev, struct kobj_uevent_env *env) |
43 | { | 45 | { |
@@ -53,7 +55,7 @@ static int hsi_bus_match(struct device *dev, struct device_driver *driver) | |||
53 | 55 | ||
54 | static struct bus_type hsi_bus_type = { | 56 | static struct bus_type hsi_bus_type = { |
55 | .name = "hsi", | 57 | .name = "hsi", |
56 | .dev_attrs = hsi_bus_dev_attrs, | 58 | .dev_groups = hsi_bus_dev_groups, |
57 | .match = hsi_bus_match, | 59 | .match = hsi_bus_match, |
58 | .uevent = hsi_bus_uevent, | 60 | .uevent = hsi_bus_uevent, |
59 | }; | 61 | }; |