Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252416
b: refs/heads/master
c: 541f90b
h: refs/heads/master
v: v3
  • Loading branch information
adam radford authored and James Bottomley committed May 24, 2011
1 parent e5875fe commit b8a6233
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46fd256e05581e4a04d5a8ec107d35afe938c65b
refs/heads/master: 541f90b7c6dffe4cf4a3e8142ac8bd047da94733
27 changes: 14 additions & 13 deletions trunk/drivers/scsi/megaraid/megaraid_sas_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -4114,6 +4114,14 @@ megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = instance;
megasas_mgmt_info.max_index++;

/*
* Register with SCSI mid-layer
*/
if (megasas_io_attach(instance))
goto fail_io_attach;

instance->unload = 0;

/*
* Initiate AEN (Asynchronous Event Notification)
*/
Expand All @@ -4122,13 +4130,6 @@ megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
goto fail_start_aen;
}

/*
* Register with SCSI mid-layer
*/
if (megasas_io_attach(instance))
goto fail_io_attach;

instance->unload = 0;
return 0;

fail_start_aen:
Expand Down Expand Up @@ -4383,19 +4384,19 @@ megasas_resume(struct pci_dev *pdev)

instance->instancet->enable_intr(instance->reg_set);

/*
* Initiate AEN (Asynchronous Event Notification)
*/
if (megasas_start_aen(instance))
printk(KERN_ERR "megasas: Start AEN failed\n");

/* Initialize the cmd completion timer */
if (poll_mode_io)
megasas_start_timer(instance, &instance->io_completion_timer,
megasas_io_completion_timer,
MEGASAS_COMPLETION_TIMER_INTERVAL);
instance->unload = 0;

/*
* Initiate AEN (Asynchronous Event Notification)
*/
if (megasas_start_aen(instance))
printk(KERN_ERR "megasas: Start AEN failed\n");

return 0;

fail_irq:
Expand Down

0 comments on commit b8a6233

Please sign in to comment.