提交 7425f410 编写于 作者: S Selvin Xavier 提交者: Doug Ledford

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: NSelvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 aff3ead9
...@@ -851,7 +851,7 @@ void ocrdma_rem_port_stats(struct ocrdma_dev *dev) ...@@ -851,7 +851,7 @@ void ocrdma_rem_port_stats(struct ocrdma_dev *dev)
{ {
if (!dev->dir) if (!dev->dir)
return; return;
debugfs_remove(dev->dir); debugfs_remove_recursive(dev->dir);
} }
void ocrdma_init_debugfs(void) void ocrdma_init_debugfs(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册