X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fblock%2Fsx8.c;h=54509eb3391bde83bc059a3443e3ee3ac8dba7c7;hb=8ff6f48d99a0351bcc9ceab422042ef9d3bad9aa;hp=47d6975268ff3348f7991ed8ff215e3baacfbe95;hpb=24fcbacedb0d83cabc6761acbecfbf751265ce52;p=powerpc.git diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 47d6975268..54509eb339 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c @@ -1244,9 +1244,10 @@ out: return IRQ_RETVAL(handled); } -static void carm_fsm_task (void *_data) +static void carm_fsm_task (struct work_struct *work) { - struct carm_host *host = _data; + struct carm_host *host = + container_of(work, struct carm_host, fsm_task); unsigned long flags; unsigned int state; int rc, i, next_dev; @@ -1619,7 +1620,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) host->pdev = pdev; host->flags = pci_dac ? FL_DAC : 0; spin_lock_init(&host->lock); - INIT_WORK(&host->fsm_task, carm_fsm_task, host); + INIT_WORK(&host->fsm_task, carm_fsm_task); init_completion(&host->probe_comp); for (i = 0; i < ARRAY_SIZE(host->req); i++)