/* Return value: 1 on success / 0 already queued / < 0 for error  */
static int fc_queue_devloss_work(struct Scsi_Host *shost, struct delayed_work *work, unsigned long delay)
/* Return value: 1 on success / 0 already queued / < 0 for error  */
static int fc_queue_devloss_work(struct Scsi_Host *shost, struct delayed_work *work, unsigned long delay)
{
	if (unlikely(!fc_host_devloss_work_q(shost))) {
		printk(KERN_ERR
			"ERROR: FC host '%s' attempted to queue work, "
			"when no workqueue created.\n", shost->hostt->name);
		dump_stack();
		return -EINVAL;
	}
	return queue_delayed_work(fc_host_devloss_work_q(shost), work, delay);
}