qla2x00t: remove detect() callback

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2015-03-25 01:00:06 +00:00
parent a788a4efd7
commit 2090b6811a

View File

@@ -70,7 +70,6 @@
# endif
#endif
static int q2t_target_detect(struct scst_tgt_template *templ);
static int q2t_target_release(struct scst_tgt *scst_tgt);
static int q2x_xmit_response(struct scst_cmd *scst_cmd);
static int __q24_xmit_response(struct q2t_cmd *cmd, int xmit_type);
@@ -235,7 +234,6 @@ static struct scst_tgt_template tgt2x_template = {
.rdy_to_xfer_atomic = 1,
#endif
.max_hw_pending_time = Q2T_MAX_HW_PENDING_TIME,
.detect = q2t_target_detect,
.release = q2t_target_release,
.xmit_response = q2x_xmit_response,
.rdy_to_xfer = q2t_rdy_to_xfer,
@@ -765,7 +763,7 @@ static void q2t_response_pkt_all_vps(scsi_qla_host_t *vha, response_t *pkt)
* Registers with initiator driver (but target mode isn't enabled till
* it's turned on via sysfs)
*/
static int q2t_target_detect(struct scst_tgt_template *tgtt)
static int q2t_target_driver_reg(struct scst_tgt_template *tgtt)
{
int res, rc;
struct qla_tgt_data t = {
@@ -796,8 +794,6 @@ static int q2t_target_detect(struct scst_tgt_template *tgtt)
goto out;
}
qla2xxx_add_targets();
res = 0;
PRINT_INFO("qla2x00t: %s", "Target mode driver for QLogic 2x00 controller "
@@ -7139,14 +7135,13 @@ static int __init q2t_init(void)
goto out_kmem_free;
}
q2t_target_driver_reg(&tgt2x_template);
res = scst_register_target_template(&tgt2x_template);
if (res < 0)
goto out_mempool_free;
/*
* qla2xxx_tgt_register_driver() happens in q2t_target_detect
* called via scst_register_target_template()
*/
qla2xxx_add_targets();
#ifdef CONFIG_SCST_PROC
res = q2t_proc_log_entry_build(&tgt2x_template);