rapidio: convert bus code to use bus_groups
[firefly-linux-kernel-4.4.55.git] / drivers / rapidio / rio-sysfs.c
index 9331be646dc34d4075df3b6512975efe3eec8c1a..795a4776cb0ccde5e1b2521b5e1606090ba4830a 100644 (file)
@@ -316,8 +316,18 @@ exit:
 
        return rc;
 }
+static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store);
 
-struct bus_attribute rio_bus_attrs[] = {
-       __ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store),
-       __ATTR_NULL
+static struct attribute *rio_bus_attrs[] = {
+       &bus_attr_scan.attr,
+       NULL,
+};
+
+static const struct attribute_group rio_bus_group = {
+       .attrs = rio_bus_attrs,
+};
+
+const struct attribute_group *rio_bus_groups[] = {
+       &rio_bus_group,
+       NULL,
 };