]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla2xxx: Remove init control block related dead code for ISPFX00.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Wed, 26 Feb 2014 09:15:00 +0000 (04:15 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:17:49 +0000 (10:17 -0700)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_mr.c
drivers/scsi/qla2xxx/qla_os.c

index 4c286eb3d45fbbfa1c0b16c176b271bab4972cea..638bdcca4552001498a0ec99673c83f36c245004 100644 (file)
@@ -1197,30 +1197,6 @@ typedef struct {
        uint8_t  reserved_3[26];
 } init_cb_t;
 
-
-struct init_cb_fx {
-       uint16_t        version;
-       uint16_t        reserved_1[13];
-       __le16          request_q_outpointer;
-       __le16          response_q_inpointer;
-       uint16_t        reserved_2[2];
-       __le16          response_q_length;
-       __le16          request_q_length;
-       uint16_t        reserved_3[2];
-       __le32          request_q_address[2];
-       __le32          response_q_address[2];
-       uint16_t        reserved_4[4];
-       uint8_t         response_q_msivec;
-       uint8_t         reserved_5[19];
-       uint16_t        interrupt_delay_timer;
-       uint16_t        reserved_6;
-       uint32_t        fwoptions1;
-       uint32_t        fwoptions2;
-       uint32_t        fwoptions3;
-       uint8_t         reserved_7[24];
-};
-
-
 /*
  * Get Link Status mailbox command return buffer.
  */
index 7c7849d54a099194fb2a8d1e3c0e29a6419d887a..4542247e5abf3ac9d699e4bd9c07a0bebd0db861 100644 (file)
@@ -631,20 +631,6 @@ qlafx00_config_rings(struct scsi_qla_host *vha)
 {
        struct qla_hw_data *ha = vha->hw;
        struct device_reg_fx00 __iomem *reg = &ha->iobase->ispfx00;
-       struct init_cb_fx *icb;
-       struct req_que *req = ha->req_q_map[0];
-       struct rsp_que *rsp = ha->rsp_q_map[0];
-
-       /* Setup ring parameters in initialization control block. */
-       icb = (struct init_cb_fx *)ha->init_cb;
-       icb->request_q_outpointer = __constant_cpu_to_le16(0);
-       icb->response_q_inpointer = __constant_cpu_to_le16(0);
-       icb->request_q_length = cpu_to_le16(req->length);
-       icb->response_q_length = cpu_to_le16(rsp->length);
-       icb->request_q_address[0] = cpu_to_le32(LSD(req->dma));
-       icb->request_q_address[1] = cpu_to_le32(MSD(req->dma));
-       icb->response_q_address[0] = cpu_to_le32(LSD(rsp->dma));
-       icb->response_q_address[1] = cpu_to_le32(MSD(rsp->dma));
 
        WRT_REG_DWORD(&reg->req_q_in, 0);
        WRT_REG_DWORD(&reg->req_q_out, 0);
index 53edc4bb21c4902c99c93001fc0e29bcc5a08dbb..c698e10e8aa790eb61414ead723b8d7ad839f503 100644 (file)
@@ -2489,7 +2489,6 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
                ha->aen_mbx_count = AEN_MAILBOX_REGISTER_COUNT_FX00;
                req_length = REQUEST_ENTRY_CNT_FX00;
                rsp_length = RESPONSE_ENTRY_CNT_FX00;
-               ha->init_cb_size = sizeof(struct init_cb_fx);
                ha->isp_ops = &qlafx00_isp_ops;
                ha->port_down_retry_count = 30; /* default value */
                ha->mr.fw_hbt_cnt = QLAFX00_HEARTBEAT_INTERVAL;