aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2008-04-03 16:13:20 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 13:19:14 -0400
commit587f4cae4a8ce1315c3def2229c2a912637269b6 (patch)
treec2657826cd5be8f28dcdc5a3adbe60b1ccbbf149 /drivers/scsi/qla2xxx/qla_init.c
parentcb8dacbf1110d8bd39413f3116ff1720f757854e (diff)
[SCSI] qla2xxx: Cruft cleanup of functions and structures.
Strip unused (DEBUG-ONLY) enabled functions, inlines, useless wrappers, and unused DPC flags from the code. Another step in the migration towards a cleaner (less-crusty) driver. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index e9a7c2d13855..d429e2f5c70e 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -15,14 +15,6 @@
15#include <asm/prom.h> 15#include <asm/prom.h>
16#endif 16#endif
17 17
18/* XXX(hch): this is ugly, but we don't want to pull in exioctl.h */
19#ifndef EXT_IS_LUN_BIT_SET
20#define EXT_IS_LUN_BIT_SET(P,L) \
21 (((P)->mask[L/8] & (0x80 >> (L%8)))?1:0)
22#define EXT_SET_LUN_BIT(P,L) \
23 ((P)->mask[L/8] |= (0x80 >> (L%8)))
24#endif
25
26/* 18/*
27* QLogic ISP2x00 Hardware Support Function Prototypes. 19* QLogic ISP2x00 Hardware Support Function Prototypes.
28*/ 20*/
@@ -2176,20 +2168,6 @@ cleanup_allocation:
2176} 2168}
2177 2169
2178static void 2170static void
2179qla2x00_probe_for_all_luns(scsi_qla_host_t *ha)
2180{
2181 fc_port_t *fcport;
2182
2183 qla2x00_mark_all_devices_lost(ha, 0);
2184 list_for_each_entry(fcport, &ha->fcports, list) {
2185 if (fcport->port_type != FCT_TARGET)
2186 continue;
2187
2188 qla2x00_update_fcport(ha, fcport);
2189 }
2190}
2191
2192static void
2193qla2x00_iidma_fcport(scsi_qla_host_t *ha, fc_port_t *fcport) 2171qla2x00_iidma_fcport(scsi_qla_host_t *ha, fc_port_t *fcport)
2194{ 2172{
2195#define LS_UNKNOWN 2 2173#define LS_UNKNOWN 2
@@ -3200,25 +3178,6 @@ qla2x00_loop_resync(scsi_qla_host_t *ha)
3200} 3178}
3201 3179
3202void 3180void
3203qla2x00_rescan_fcports(scsi_qla_host_t *ha)
3204{
3205 int rescan_done;
3206 fc_port_t *fcport;
3207
3208 rescan_done = 0;
3209 list_for_each_entry(fcport, &ha->fcports, list) {
3210 if ((fcport->flags & FCF_RESCAN_NEEDED) == 0)
3211 continue;
3212
3213 qla2x00_update_fcport(ha, fcport);
3214 fcport->flags &= ~FCF_RESCAN_NEEDED;
3215
3216 rescan_done = 1;
3217 }
3218 qla2x00_probe_for_all_luns(ha);
3219}
3220
3221void
3222qla2x00_update_fcports(scsi_qla_host_t *ha) 3181qla2x00_update_fcports(scsi_qla_host_t *ha)
3223{ 3182{
3224 fc_port_t *fcport; 3183 fc_port_t *fcport;