Commit 1149df8d authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] cciss init problem

This assigns the queue properly.
parent 0708e1f7
......@@ -2525,6 +2525,9 @@ static int __init cciss_init_one(struct pci_dev *pdev,
if (!q)
goto err_all;
hba[i]->queue = q;
q->queuedata = hba[i];
/* Initialize the pdev driver private data.
have it point to hba[i]. */
pci_set_drvdata(pdev, hba[i]);
......@@ -2545,7 +2548,6 @@ static int __init cciss_init_one(struct pci_dev *pdev,
cciss_procinit(i);
q->queuedata = hba[i];
blk_queue_bounce_limit(q, hba[i]->pdev->dma_mask);
/* This is a hardware imposed limit. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment