IB/hfi1: convert to debugfs_file_get() and -put()
authorNicolai Stange <nicstange@gmail.com>
Mon, 30 Oct 2017 23:15:51 +0000 (00:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Nov 2017 19:25:02 +0000 (20:25 +0100)
commit7cda7b8f97da9382bb945d541a85cde58d5dac27
tree88556470e47f6306c52288d8abec8400289852b4
parent69d29f9e6a53559895e6f785f6cf72daa738f132
IB/hfi1: convert to debugfs_file_get() and -put()

Convert all calls to the now obsolete debugfs_use_file_start() and
debugfs_use_file_finish() to the new debugfs_file_get() and
debugfs_file_put() API.

Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private data")
Signed-off-by: Nicolai Stange <nicstange@gmail.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/hfi1/debugfs.c