aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEric Moore <eric.moore@lsil.com>2006-05-17 20:19:43 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-05-20 10:02:28 -0400
commit9f434d4f84a235f6b61aec6e691d6b07bc46fc24 (patch)
tree741cc0395ea33f5c6ddcf330747dbfa206a129c6 /drivers
parent6d99a3f372181160a56d7b1ee3259dbe03663f0d (diff)
[SCSI] scsi_transport_sas: make write attrs writeable
A couple write attributes in sas transport layer have a small bug that prevents them from being written to. Those attributes are the link_reset and write_reset. This is due the store field being set to NULL. Signed-off-by: Eric Moore <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/scsi_transport_sas.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c
index 8126c395de16..f3b16066387c 100644
--- a/drivers/scsi/scsi_transport_sas.c
+++ b/drivers/scsi/scsi_transport_sas.c
@@ -978,7 +978,6 @@ static int sas_user_scan(struct Scsi_Host *shost, uint channel,
978#define SETUP_TEMPLATE(attrb, field, perm, test) \ 978#define SETUP_TEMPLATE(attrb, field, perm, test) \
979 i->private_##attrb[count] = class_device_attr_##field; \ 979 i->private_##attrb[count] = class_device_attr_##field; \
980 i->private_##attrb[count].attr.mode = perm; \ 980 i->private_##attrb[count].attr.mode = perm; \
981 i->private_##attrb[count].store = NULL; \
982 i->attrb[count] = &i->private_##attrb[count]; \ 981 i->attrb[count] = &i->private_##attrb[count]; \
983 if (test) \ 982 if (test) \
984 count++ 983 count++