diff options
author | Ching Huang <ching2048@areca.com.tw> | 2014-08-19 03:01:28 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-16 12:39:44 -0400 |
commit | a5849726bc88506e84e5754d6bfde81ba091f24d (patch) | |
tree | d7431280f571000fa615a1ffba410f79410de43f /drivers/scsi/arcmsr | |
parent | 12aad94792718c6a79bbd395a650caff85f76ae4 (diff) |
arcmsr: remove calling arcmsr_hbb_enable_driver_mode
Remove calling arcmsr_hbb_enable_driver_mode by in-lining the code into
the caller.
Signed-off-by: Ching Huang <ching2048@areca.com.tw>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/arcmsr')
-rw-r--r-- | drivers/scsi/arcmsr/arcmsr_hba.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index bfe2ac460e01..5dd520b3b6e2 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c | |||
@@ -858,17 +858,6 @@ static uint8_t arcmsr_abort_allcmd(struct AdapterControlBlock *acb) | |||
858 | return rtnval; | 858 | return rtnval; |
859 | } | 859 | } |
860 | 860 | ||
861 | static bool arcmsr_hbb_enable_driver_mode(struct AdapterControlBlock *pacb) | ||
862 | { | ||
863 | struct MessageUnit_B *reg = pacb->pmuB; | ||
864 | writel(ARCMSR_MESSAGE_START_DRIVER_MODE, reg->drv2iop_doorbell); | ||
865 | if (!arcmsr_hbb_wait_msgint_ready(pacb)) { | ||
866 | printk(KERN_ERR "arcmsr%d: can't set driver mode. \n", pacb->host->host_no); | ||
867 | return false; | ||
868 | } | ||
869 | return true; | ||
870 | } | ||
871 | |||
872 | static void arcmsr_pci_unmap_dma(struct CommandControlBlock *ccb) | 861 | static void arcmsr_pci_unmap_dma(struct CommandControlBlock *ccb) |
873 | { | 862 | { |
874 | struct scsi_cmnd *pcmd = ccb->pcmd; | 863 | struct scsi_cmnd *pcmd = ccb->pcmd; |
@@ -2665,7 +2654,12 @@ static int arcmsr_iop_confirm(struct AdapterControlBlock *acb) | |||
2665 | timeout \n",acb->host->host_no); | 2654 | timeout \n",acb->host->host_no); |
2666 | return 1; | 2655 | return 1; |
2667 | } | 2656 | } |
2668 | arcmsr_hbb_enable_driver_mode(acb); | 2657 | writel(ARCMSR_MESSAGE_START_DRIVER_MODE, reg->drv2iop_doorbell); |
2658 | if (!arcmsr_hbb_wait_msgint_ready(acb)) { | ||
2659 | pr_err("arcmsr%d: can't set driver mode.\n", | ||
2660 | acb->host->host_no); | ||
2661 | return 1; | ||
2662 | } | ||
2669 | } | 2663 | } |
2670 | break; | 2664 | break; |
2671 | case ACB_ADAPTER_TYPE_C: { | 2665 | case ACB_ADAPTER_TYPE_C: { |