diff options
author | James Smart <James.Smart@Emulex.Com> | 2006-07-06 15:50:29 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-07-09 11:47:34 -0400 |
commit | 5e0b43385559bfe78c1f80d71ec203effe244d9a (patch) | |
tree | 6a6ab5f69d49c5aa11d08c9f7e73122c9e5a48a9 /drivers | |
parent | 40496f073ffe75c59414a7236f95ecbc49562596 (diff) |
[SCSI] lpfc 8.1.7: Remove depricated sysfs attribute board_online
Remove depricated sysfs attribute board_online, as it's replaced by the new
issue_reset attribute
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index cdae011b2813..48379c606124 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -293,45 +293,6 @@ lpfc_nport_evt_cnt_show(struct class_device *cdev, char *buf) | |||
293 | } | 293 | } |
294 | 294 | ||
295 | static ssize_t | 295 | static ssize_t |
296 | lpfc_board_online_show(struct class_device *cdev, char *buf) | ||
297 | { | ||
298 | struct Scsi_Host *host = class_to_shost(cdev); | ||
299 | struct lpfc_hba *phba = (struct lpfc_hba*)host->hostdata; | ||
300 | |||
301 | if (phba->fc_flag & FC_OFFLINE_MODE) | ||
302 | return snprintf(buf, PAGE_SIZE, "0\n"); | ||
303 | else | ||
304 | return snprintf(buf, PAGE_SIZE, "1\n"); | ||
305 | } | ||
306 | |||
307 | static ssize_t | ||
308 | lpfc_board_online_store(struct class_device *cdev, const char *buf, | ||
309 | size_t count) | ||
310 | { | ||
311 | struct Scsi_Host *host = class_to_shost(cdev); | ||
312 | struct lpfc_hba *phba = (struct lpfc_hba*)host->hostdata; | ||
313 | struct completion online_compl; | ||
314 | int val=0, status=0; | ||
315 | |||
316 | if (sscanf(buf, "%d", &val) != 1) | ||
317 | return -EINVAL; | ||
318 | |||
319 | init_completion(&online_compl); | ||
320 | |||
321 | if (val) | ||
322 | lpfc_workq_post_event(phba, &status, &online_compl, | ||
323 | LPFC_EVT_ONLINE); | ||
324 | else | ||
325 | lpfc_workq_post_event(phba, &status, &online_compl, | ||
326 | LPFC_EVT_OFFLINE); | ||
327 | wait_for_completion(&online_compl); | ||
328 | if (!status) | ||
329 | return strlen(buf); | ||
330 | else | ||
331 | return -EIO; | ||
332 | } | ||
333 | |||
334 | static ssize_t | ||
335 | lpfc_board_mode_show(struct class_device *cdev, char *buf) | 296 | lpfc_board_mode_show(struct class_device *cdev, char *buf) |
336 | { | 297 | { |
337 | struct Scsi_Host *host = class_to_shost(cdev); | 298 | struct Scsi_Host *host = class_to_shost(cdev); |
@@ -583,8 +544,6 @@ static CLASS_DEVICE_ATTR(lpfc_drvr_version, S_IRUGO, lpfc_drvr_version_show, | |||
583 | NULL); | 544 | NULL); |
584 | static CLASS_DEVICE_ATTR(management_version, S_IRUGO, management_version_show, | 545 | static CLASS_DEVICE_ATTR(management_version, S_IRUGO, management_version_show, |
585 | NULL); | 546 | NULL); |
586 | static CLASS_DEVICE_ATTR(board_online, S_IRUGO | S_IWUSR, | ||
587 | lpfc_board_online_show, lpfc_board_online_store); | ||
588 | static CLASS_DEVICE_ATTR(board_mode, S_IRUGO | S_IWUSR, | 547 | static CLASS_DEVICE_ATTR(board_mode, S_IRUGO | S_IWUSR, |
589 | lpfc_board_mode_show, lpfc_board_mode_store); | 548 | lpfc_board_mode_show, lpfc_board_mode_store); |
590 | static CLASS_DEVICE_ATTR(issue_reset, S_IWUSR, NULL, lpfc_issue_reset); | 549 | static CLASS_DEVICE_ATTR(issue_reset, S_IWUSR, NULL, lpfc_issue_reset); |
@@ -791,7 +750,6 @@ struct class_device_attribute *lpfc_host_attrs[] = { | |||
791 | &class_device_attr_lpfc_max_luns, | 750 | &class_device_attr_lpfc_max_luns, |
792 | &class_device_attr_nport_evt_cnt, | 751 | &class_device_attr_nport_evt_cnt, |
793 | &class_device_attr_management_version, | 752 | &class_device_attr_management_version, |
794 | &class_device_attr_board_online, | ||
795 | &class_device_attr_board_mode, | 753 | &class_device_attr_board_mode, |
796 | &class_device_attr_issue_reset, | 754 | &class_device_attr_issue_reset, |
797 | &class_device_attr_lpfc_poll, | 755 | &class_device_attr_lpfc_poll, |