qla2x00t: Remove a delayed_work function pointer cast

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6657 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-11-10 19:17:51 +00:00
parent cd6b27dba4
commit 0234aa8f99
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ extern size_t qla2xxx_del_vtarget(u64 port_name);
#endif /*((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)) || \
defined(FC_VPORT_CREATE_DEFINED))*/
extern void qla_unknown_atio_work_fn(struct delayed_work *work);
extern void qla_unknown_atio_work_fn(struct work_struct *work);
#else /* CONFIG_SCSI_QLA2XXX_TARGET */
+3 -4
View File
@@ -2386,10 +2386,10 @@ EXPORT_SYMBOL(qla2xxx_del_vtarget);
#endif /*((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)) || \
defined(FC_VPORT_CREATE_DEFINED))*/
void qla_unknown_atio_work_fn(struct delayed_work *work)
void qla_unknown_atio_work_fn(struct work_struct *work)
{
struct qla_hw_data *ha = container_of(work, struct qla_hw_data,
unknown_atio_work);
unknown_atio_work.work);
qla_target.tgt_try_to_dequeue_unknown_atios(ha);
return;
}
@@ -2661,8 +2661,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
mutex_init(&base_vha->tgt_mutex);
mutex_init(&base_vha->tgt_host_action_mutex);
INIT_LIST_HEAD(&ha->unknown_atio_list);
INIT_DELAYED_WORK(&ha->unknown_atio_work,
(void (*)(struct work_struct *))qla_unknown_atio_work_fn);
INIT_DELAYED_WORK(&ha->unknown_atio_work, qla_unknown_atio_work_fn);
qla_clear_tgt_mode(base_vha);
#endif /* CONFIG_SCSI_QLA2XXX_TARGET */