[SCSI] qla2xxx: Fix for warnings reported by sparse.
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / scsi / qla2xxx / qla_dbg.c
index 44efe3cc79e6b5e90523cac89a718fbd3d946761..04b28235e5846f8f630d11e846b5dd0d8e2cbf40 100644 (file)
@@ -526,8 +526,8 @@ qla25xx_copy_mq(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain)
                ha->max_req_queues : ha->max_rsp_queues;
        mq->count = htonl(que_cnt);
        for (cnt = 0; cnt < que_cnt; cnt++) {
-               reg = (struct device_reg_25xxmq *) ((void *)
-                       ha->mqiobase + cnt * QLA_QUE_PAGE);
+               reg = (struct device_reg_25xxmq __iomem *)
+                       (ha->mqiobase + cnt * QLA_QUE_PAGE);
                que_idx = cnt * 4;
                mq->qregs[que_idx] = htonl(RD_REG_DWORD(&reg->req_q_in));
                mq->qregs[que_idx+1] = htonl(RD_REG_DWORD(&reg->req_q_out));