diff options
Diffstat (limited to 'drivers/block/nvme.c')
-rw-r--r-- | drivers/block/nvme.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 931769e133e5..07fb2dfaae13 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -975,8 +975,8 @@ static int queue_request_irq(struct nvme_dev *dev, struct nvme_queue *nvmeq, | |||
975 | IRQF_DISABLED | IRQF_SHARED, name, nvmeq); | 975 | IRQF_DISABLED | IRQF_SHARED, name, nvmeq); |
976 | } | 976 | } |
977 | 977 | ||
978 | static __devinit struct nvme_queue *nvme_create_queue(struct nvme_dev *dev, | 978 | static struct nvme_queue *nvme_create_queue(struct nvme_dev *dev, int qid, |
979 | int qid, int cq_size, int vector) | 979 | int cq_size, int vector) |
980 | { | 980 | { |
981 | int result; | 981 | int result; |
982 | struct nvme_queue *nvmeq = nvme_alloc_queue(dev, qid, cq_size, vector); | 982 | struct nvme_queue *nvmeq = nvme_alloc_queue(dev, qid, cq_size, vector); |
@@ -1011,7 +1011,7 @@ static __devinit struct nvme_queue *nvme_create_queue(struct nvme_dev *dev, | |||
1011 | return ERR_PTR(result); | 1011 | return ERR_PTR(result); |
1012 | } | 1012 | } |
1013 | 1013 | ||
1014 | static int __devinit nvme_configure_admin_queue(struct nvme_dev *dev) | 1014 | static int nvme_configure_admin_queue(struct nvme_dev *dev) |
1015 | { | 1015 | { |
1016 | int result = 0; | 1016 | int result = 0; |
1017 | u32 aqa; | 1017 | u32 aqa; |
@@ -1408,7 +1408,7 @@ static int set_queue_count(struct nvme_dev *dev, int count) | |||
1408 | return min(result & 0xffff, result >> 16) + 1; | 1408 | return min(result & 0xffff, result >> 16) + 1; |
1409 | } | 1409 | } |
1410 | 1410 | ||
1411 | static int __devinit nvme_setup_io_queues(struct nvme_dev *dev) | 1411 | static int nvme_setup_io_queues(struct nvme_dev *dev) |
1412 | { | 1412 | { |
1413 | int result, cpu, i, nr_io_queues, db_bar_size, q_depth; | 1413 | int result, cpu, i, nr_io_queues, db_bar_size, q_depth; |
1414 | 1414 | ||
@@ -1481,7 +1481,7 @@ static void nvme_free_queues(struct nvme_dev *dev) | |||
1481 | nvme_free_queue(dev, i); | 1481 | nvme_free_queue(dev, i); |
1482 | } | 1482 | } |
1483 | 1483 | ||
1484 | static int __devinit nvme_dev_add(struct nvme_dev *dev) | 1484 | static int nvme_dev_add(struct nvme_dev *dev) |
1485 | { | 1485 | { |
1486 | int res, nn, i; | 1486 | int res, nn, i; |
1487 | struct nvme_ns *ns, *next; | 1487 | struct nvme_ns *ns, *next; |
@@ -1619,8 +1619,7 @@ static void nvme_release_instance(struct nvme_dev *dev) | |||
1619 | spin_unlock(&dev_list_lock); | 1619 | spin_unlock(&dev_list_lock); |
1620 | } | 1620 | } |
1621 | 1621 | ||
1622 | static int __devinit nvme_probe(struct pci_dev *pdev, | 1622 | static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
1623 | const struct pci_device_id *id) | ||
1624 | { | 1623 | { |
1625 | int bars, result = -ENOMEM; | 1624 | int bars, result = -ENOMEM; |
1626 | struct nvme_dev *dev; | 1625 | struct nvme_dev *dev; |
@@ -1702,7 +1701,7 @@ static int __devinit nvme_probe(struct pci_dev *pdev, | |||
1702 | return result; | 1701 | return result; |
1703 | } | 1702 | } |
1704 | 1703 | ||
1705 | static void __devexit nvme_remove(struct pci_dev *pdev) | 1704 | static void nvme_remove(struct pci_dev *pdev) |
1706 | { | 1705 | { |
1707 | struct nvme_dev *dev = pci_get_drvdata(pdev); | 1706 | struct nvme_dev *dev = pci_get_drvdata(pdev); |
1708 | nvme_dev_remove(dev); | 1707 | nvme_dev_remove(dev); |
@@ -1747,7 +1746,7 @@ static struct pci_driver nvme_driver = { | |||
1747 | .name = "nvme", | 1746 | .name = "nvme", |
1748 | .id_table = nvme_id_table, | 1747 | .id_table = nvme_id_table, |
1749 | .probe = nvme_probe, | 1748 | .probe = nvme_probe, |
1750 | .remove = __devexit_p(nvme_remove), | 1749 | .remove = nvme_remove, |
1751 | .suspend = nvme_suspend, | 1750 | .suspend = nvme_suspend, |
1752 | .resume = nvme_resume, | 1751 | .resume = nvme_resume, |
1753 | .err_handler = &nvme_err_handler, | 1752 | .err_handler = &nvme_err_handler, |