Skip to content

Commit

Permalink
[SCSI] ipr: Rename ipr's state scsi host attribute to prevent collisions
Browse files Browse the repository at this point in the history
Due to recent device model changes it now no longer tolerates name
collisions.  This causes a problem for ipr whose "state" attribute
collides with an identically named one in the SCSI mid-layer. Rename
the ipr driver attribute to be more specific.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Brian King authored and James Bottomley committed Apr 30, 2008
1 parent 69cd39e commit 49dd096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,7 @@ static ssize_t ipr_store_adapter_state(struct device *dev,

static struct device_attribute ipr_ioa_state_attr = {
.attr = {
.name = "state",
.name = "online_state",
.mode = S_IRUGO | S_IWUSR,
},
.show = ipr_show_adapter_state,
Expand Down

0 comments on commit 49dd096

Please sign in to comment.