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>
This commit is contained in:
@@ -553,16 +553,20 @@ static struct device_type fcoe_fcf_device_type = {
|
|||||||
.release = fcoe_fcf_device_release,
|
.release = fcoe_fcf_device_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct bus_attribute fcoe_bus_attr_group[] = {
|
static BUS_ATTR(ctlr_create, S_IWUSR, NULL, fcoe_ctlr_create_store);
|
||||||
__ATTR(ctlr_create, S_IWUSR, NULL, fcoe_ctlr_create_store),
|
static BUS_ATTR(ctlr_destroy, S_IWUSR, NULL, fcoe_ctlr_destroy_store);
|
||||||
__ATTR(ctlr_destroy, S_IWUSR, NULL, fcoe_ctlr_destroy_store),
|
|
||||||
__ATTR_NULL
|
static struct attribute *fcoe_bus_attrs[] = {
|
||||||
|
&bus_attr_ctlr_create.attr,
|
||||||
|
&bus_attr_ctrl_destroy.attr,
|
||||||
|
NULL,
|
||||||
};
|
};
|
||||||
|
ATTRIBUTE_GROUPS(fcoe_bus);
|
||||||
|
|
||||||
static struct bus_type fcoe_bus_type = {
|
static struct bus_type fcoe_bus_type = {
|
||||||
.name = "fcoe",
|
.name = "fcoe",
|
||||||
.match = &fcoe_bus_match,
|
.match = &fcoe_bus_match,
|
||||||
.bus_attrs = fcoe_bus_attr_group,
|
.bus_groups = fcoe_bus_groups,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user