aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/fcoe_sysfs.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-23 17:24:32 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 18:49:42 -0400
commitc88dc5554a3a59553e98e89d6d10be7c976179cb (patch)
tree3dd1911fe2d69910f3a3c90955d1ceff84081f1f /drivers/scsi/fcoe/fcoe_sysfs.c
parent367601fcedefd084f44ee476c92e20b38238c645 (diff)
SCSI: fcoe: convert bus code to use bus_groups
The bus_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the fcoe bus code to use the correct field. Cc: Robert Love <robert.w.love@intel.com> Cc: "James E.J. Bottomley" <JBottomley@parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/fcoe/fcoe_sysfs.c')
-rw-r--r--drivers/scsi/fcoe/fcoe_sysfs.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c
index c9382d6eee78..8189b96eac7e 100644
--- a/drivers/scsi/fcoe/fcoe_sysfs.c
+++ b/drivers/scsi/fcoe/fcoe_sysfs.c
@@ -553,16 +553,20 @@ static struct device_type fcoe_fcf_device_type = {
553 .release = fcoe_fcf_device_release, 553 .release = fcoe_fcf_device_release,
554}; 554};
555 555
556static struct bus_attribute fcoe_bus_attr_group[] = { 556static BUS_ATTR(ctlr_create, S_IWUSR, NULL, fcoe_ctlr_create_store);
557 __ATTR(ctlr_create, S_IWUSR, NULL, fcoe_ctlr_create_store), 557static BUS_ATTR(ctlr_destroy, S_IWUSR, NULL, fcoe_ctlr_destroy_store);
558 __ATTR(ctlr_destroy, S_IWUSR, NULL, fcoe_ctlr_destroy_store), 558
559 __ATTR_NULL 559static struct attribute *fcoe_bus_attrs[] = {
560 &bus_attr_ctlr_create.attr,
561 &bus_attr_ctrl_destroy.attr,
562 NULL,
560}; 563};
564ATTRIBUTE_GROUPS(fcoe_bus);
561 565
562static struct bus_type fcoe_bus_type = { 566static struct bus_type fcoe_bus_type = {
563 .name = "fcoe", 567 .name = "fcoe",
564 .match = &fcoe_bus_match, 568 .match = &fcoe_bus_match,
565 .bus_attrs = fcoe_bus_attr_group, 569 .bus_groups = fcoe_bus_groups,
566}; 570};
567 571
568/** 572/**