|
@@ -330,12 +330,10 @@ struct scsi_transport_template *qla2xxx_transport_vport_template = NULL;
|
|
|
*/
|
|
|
|
|
|
__inline__ void
|
|
|
-qla2x00_start_timer(scsi_qla_host_t *vha, void *func, unsigned long interval)
|
|
|
+qla2x00_start_timer(scsi_qla_host_t *vha, unsigned long interval)
|
|
|
{
|
|
|
- init_timer(&vha->timer);
|
|
|
+ timer_setup(&vha->timer, qla2x00_timer, 0);
|
|
|
vha->timer.expires = jiffies + interval * HZ;
|
|
|
- vha->timer.data = (unsigned long)vha;
|
|
|
- vha->timer.function = (void (*)(unsigned long))func;
|
|
|
add_timer(&vha->timer);
|
|
|
vha->timer_active = 1;
|
|
|
}
|
|
@@ -3245,7 +3243,7 @@ skip_dpc:
|
|
|
base_vha->host->irq = ha->pdev->irq;
|
|
|
|
|
|
/* Initialized the timer */
|
|
|
- qla2x00_start_timer(base_vha, qla2x00_timer, WATCH_INTERVAL);
|
|
|
+ qla2x00_start_timer(base_vha, WATCH_INTERVAL);
|
|
|
ql_dbg(ql_dbg_init, base_vha, 0x00ef,
|
|
|
"Started qla2x00_timer with "
|
|
|
"interval=%d.\n", WATCH_INTERVAL);
|
|
@@ -5994,8 +5992,9 @@ qla2x00_rst_aen(scsi_qla_host_t *vha)
|
|
|
* Context: Interrupt
|
|
|
***************************************************************************/
|
|
|
void
|
|
|
-qla2x00_timer(scsi_qla_host_t *vha)
|
|
|
+qla2x00_timer(struct timer_list *t)
|
|
|
{
|
|
|
+ scsi_qla_host_t *vha = from_timer(vha, t, timer);
|
|
|
unsigned long cpu_flags = 0;
|
|
|
int start_dpc = 0;
|
|
|
int index;
|