diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-21 02:54:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 08:25:26 -0500 |
commit | c9fbe769d0f220f6b766e38c323ff52e680bc9e2 (patch) | |
tree | 30d86edaceb6ed66d1b3300e0950ccae7b93b883 | |
parent | c1507ea8349c04681b9b288bc81ed786199ee181 (diff) |
rapidio: rio-sysfs.c: convert to use BUS_ATTR_WO
We are trying to get rid of BUS_ATTR() and the usage of that in
rio-sysfs.c can be trivially converted to use BUS_ATTR_WO(), so use that
instead.
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Alexandre Bounine <alex.bou9@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/rapidio/rio-sysfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index 73e4b407f162..ad5e303dda05 100644 --- a/drivers/rapidio/rio-sysfs.c +++ b/drivers/rapidio/rio-sysfs.c | |||
@@ -290,8 +290,7 @@ const struct attribute_group *rio_dev_groups[] = { | |||
290 | NULL, | 290 | NULL, |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static ssize_t bus_scan_store(struct bus_type *bus, const char *buf, | 293 | static ssize_t scan_store(struct bus_type *bus, const char *buf, size_t count) |
294 | size_t count) | ||
295 | { | 294 | { |
296 | long val; | 295 | long val; |
297 | int rc; | 296 | int rc; |
@@ -314,7 +313,7 @@ exit: | |||
314 | 313 | ||
315 | return rc; | 314 | return rc; |
316 | } | 315 | } |
317 | static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store); | 316 | static BUS_ATTR_WO(scan); |
318 | 317 | ||
319 | static struct attribute *rio_bus_attrs[] = { | 318 | static struct attribute *rio_bus_attrs[] = { |
320 | &bus_attr_scan.attr, | 319 | &bus_attr_scan.attr, |