aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma/ocrdma_stats.c
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2016-02-05 20:06:40 +0530
committerDoug Ledford <dledford@redhat.com>2016-02-05 15:14:28 -0500
commit7425f410ca6cffe81400906286f80e8e15d9b301 (patch)
tree9d4003f124314fa74319703c15710ac41845e646 /drivers/infiniband/hw/ocrdma/ocrdma_stats.c
parentRDMA/ocrdma: Fix pkey_index returned by driver in rq work completion (diff)
downloadlinux-dev-7425f410ca6cffe81400906286f80e8e15d9b301.tar.xz
linux-dev-7425f410ca6cffe81400906286f80e8e15d9b301.zip
RDMA/ocrdma: Fixing ocrdma debugfs directory remove
During the ocrdma device remove sequence, the debugfs directory tree of each ocrdma device needs to be removed. Use debugfs_remove_recursive instead of debugfs_remove. Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_stats.c')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_stats.c b/drivers/infiniband/hw/ocrdma/ocrdma_stats.c
index fc02e86849ce..255f774080a4 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_stats.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_stats.c
@@ -851,7 +851,7 @@ void ocrdma_rem_port_stats(struct ocrdma_dev *dev)
{
if (!dev->dir)
return;
- debugfs_remove(dev->dir);
+ debugfs_remove_recursive(dev->dir);
}
void ocrdma_init_debugfs(void)