diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_provider.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c index 0b5adfd91597..0cc86f8e1850 100644 --- a/drivers/infiniband/hw/mthca/mthca_provider.c +++ b/drivers/infiniband/hw/mthca/mthca_provider.c | |||
@@ -284,7 +284,9 @@ static int mthca_query_gid(struct ib_device *ibdev, u8 port, | |||
284 | return err; | 284 | return err; |
285 | } | 285 | } |
286 | 286 | ||
287 | static struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev) | 287 | static struct ib_pd *mthca_alloc_pd(struct ib_device *ibdev, |
288 | struct ib_ucontext *context, | ||
289 | struct ib_udata *udata) | ||
288 | { | 290 | { |
289 | struct mthca_pd *pd; | 291 | struct mthca_pd *pd; |
290 | int err; | 292 | int err; |
@@ -338,7 +340,8 @@ static int mthca_ah_destroy(struct ib_ah *ah) | |||
338 | } | 340 | } |
339 | 341 | ||
340 | static struct ib_qp *mthca_create_qp(struct ib_pd *pd, | 342 | static struct ib_qp *mthca_create_qp(struct ib_pd *pd, |
341 | struct ib_qp_init_attr *init_attr) | 343 | struct ib_qp_init_attr *init_attr, |
344 | struct ib_udata *udata) | ||
342 | { | 345 | { |
343 | struct mthca_qp *qp; | 346 | struct mthca_qp *qp; |
344 | int err; | 347 | int err; |
@@ -409,7 +412,9 @@ static int mthca_destroy_qp(struct ib_qp *qp) | |||
409 | return 0; | 412 | return 0; |
410 | } | 413 | } |
411 | 414 | ||
412 | static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries) | 415 | static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries, |
416 | struct ib_ucontext *context, | ||
417 | struct ib_udata *udata) | ||
413 | { | 418 | { |
414 | struct mthca_cq *cq; | 419 | struct mthca_cq *cq; |
415 | int nent; | 420 | int nent; |
@@ -692,6 +697,8 @@ int mthca_register_device(struct mthca_dev *dev) | |||
692 | int i; | 697 | int i; |
693 | 698 | ||
694 | strlcpy(dev->ib_dev.name, "mthca%d", IB_DEVICE_NAME_MAX); | 699 | strlcpy(dev->ib_dev.name, "mthca%d", IB_DEVICE_NAME_MAX); |
700 | dev->ib_dev.owner = THIS_MODULE; | ||
701 | |||
695 | dev->ib_dev.node_type = IB_NODE_CA; | 702 | dev->ib_dev.node_type = IB_NODE_CA; |
696 | dev->ib_dev.phys_port_cnt = dev->limits.num_ports; | 703 | dev->ib_dev.phys_port_cnt = dev->limits.num_ports; |
697 | dev->ib_dev.dma_device = &dev->pdev->dev; | 704 | dev->ib_dev.dma_device = &dev->pdev->dev; |