aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_qp.c4
-rw-r--r--drivers/infiniband/hw/cxgb4/qp.c4
-rw-r--r--drivers/infiniband/hw/ehca/hcp_if.h2
-rw-r--r--drivers/infiniband/hw/ipath/ipath_file_ops.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c
index ae47bfd22bd5..9bbb65bba67e 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_qp.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c
@@ -816,7 +816,7 @@ static void __flush_qp(struct iwch_qp *qhp, unsigned long *flag)
816 atomic_inc(&qhp->refcnt); 816 atomic_inc(&qhp->refcnt);
817 spin_unlock_irqrestore(&qhp->lock, *flag); 817 spin_unlock_irqrestore(&qhp->lock, *flag);
818 818
819 /* locking heirarchy: cq lock first, then qp lock. */ 819 /* locking hierarchy: cq lock first, then qp lock. */
820 spin_lock_irqsave(&rchp->lock, *flag); 820 spin_lock_irqsave(&rchp->lock, *flag);
821 spin_lock(&qhp->lock); 821 spin_lock(&qhp->lock);
822 cxio_flush_hw_cq(&rchp->cq); 822 cxio_flush_hw_cq(&rchp->cq);
@@ -827,7 +827,7 @@ static void __flush_qp(struct iwch_qp *qhp, unsigned long *flag)
827 if (flushed) 827 if (flushed)
828 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); 828 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context);
829 829
830 /* locking heirarchy: cq lock first, then qp lock. */ 830 /* locking hierarchy: cq lock first, then qp lock. */
831 spin_lock_irqsave(&schp->lock, *flag); 831 spin_lock_irqsave(&schp->lock, *flag);
832 spin_lock(&qhp->lock); 832 spin_lock(&qhp->lock);
833 cxio_flush_hw_cq(&schp->cq); 833 cxio_flush_hw_cq(&schp->cq);
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
index 7065cb310553..86b93f2ecca3 100644
--- a/drivers/infiniband/hw/cxgb4/qp.c
+++ b/drivers/infiniband/hw/cxgb4/qp.c
@@ -905,7 +905,7 @@ static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp,
905 atomic_inc(&qhp->refcnt); 905 atomic_inc(&qhp->refcnt);
906 spin_unlock_irqrestore(&qhp->lock, *flag); 906 spin_unlock_irqrestore(&qhp->lock, *flag);
907 907
908 /* locking heirarchy: cq lock first, then qp lock. */ 908 /* locking hierarchy: cq lock first, then qp lock. */
909 spin_lock_irqsave(&rchp->lock, *flag); 909 spin_lock_irqsave(&rchp->lock, *flag);
910 spin_lock(&qhp->lock); 910 spin_lock(&qhp->lock);
911 c4iw_flush_hw_cq(&rchp->cq); 911 c4iw_flush_hw_cq(&rchp->cq);
@@ -916,7 +916,7 @@ static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp,
916 if (flushed) 916 if (flushed)
917 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); 917 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context);
918 918
919 /* locking heirarchy: cq lock first, then qp lock. */ 919 /* locking hierarchy: cq lock first, then qp lock. */
920 spin_lock_irqsave(&schp->lock, *flag); 920 spin_lock_irqsave(&schp->lock, *flag);
921 spin_lock(&qhp->lock); 921 spin_lock(&qhp->lock);
922 c4iw_flush_hw_cq(&schp->cq); 922 c4iw_flush_hw_cq(&schp->cq);
diff --git a/drivers/infiniband/hw/ehca/hcp_if.h b/drivers/infiniband/hw/ehca/hcp_if.h
index 39c1c3618ec7..a46e514c367b 100644
--- a/drivers/infiniband/hw/ehca/hcp_if.h
+++ b/drivers/infiniband/hw/ehca/hcp_if.h
@@ -49,7 +49,7 @@
49#include "hipz_hw.h" 49#include "hipz_hw.h"
50 50
51/* 51/*
52 * hipz_h_alloc_resource_eq allocates EQ resources in HW and FW, initalize 52 * hipz_h_alloc_resource_eq allocates EQ resources in HW and FW, initialize
53 * resources, create the empty EQPT (ring). 53 * resources, create the empty EQPT (ring).
54 */ 54 */
55u64 hipz_h_alloc_resource_eq(const struct ipz_adapter_handle adapter_handle, 55u64 hipz_h_alloc_resource_eq(const struct ipz_adapter_handle adapter_handle,
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c
index 9c5c66d16a23..65eb8929db22 100644
--- a/drivers/infiniband/hw/ipath/ipath_file_ops.c
+++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c
@@ -2055,7 +2055,7 @@ static int ipath_close(struct inode *in, struct file *fp)
2055 2055
2056 mutex_lock(&ipath_mutex); 2056 mutex_lock(&ipath_mutex);
2057 2057
2058 fd = (struct ipath_filedata *) fp->private_data; 2058 fd = fp->private_data;
2059 fp->private_data = NULL; 2059 fp->private_data = NULL;
2060 pd = fd->pd; 2060 pd = fd->pd;
2061 if (!pd) { 2061 if (!pd) {