rapidio: rio-sysfs.c: convert to use BUS_ATTR_WO
[sfrench/cifs-2.6.git] / drivers / rapidio / rio-sysfs.c
index 73e4b407f162fa0b5b9184736d17850e1d8c35c0..ad5e303dda055c64ae287a7d3008fba2338a6d51 100644 (file)
@@ -290,8 +290,7 @@ const struct attribute_group *rio_dev_groups[] = {
        NULL,
 };
 
-static ssize_t bus_scan_store(struct bus_type *bus, const char *buf,
-                               size_t count)
+static ssize_t scan_store(struct bus_type *bus, const char *buf, size_t count)
 {
        long val;
        int rc;
@@ -314,7 +313,7 @@ exit:
 
        return rc;
 }
-static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store);
+static BUS_ATTR_WO(scan);
 
 static struct attribute *rio_bus_attrs[] = {
        &bus_attr_scan.attr,