aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ntb/ntb_transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ntb/ntb_transport.c')
-rw-r--r--drivers/ntb/ntb_transport.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index bf7ade14c742..c0eca02eb6d0 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -364,12 +364,6 @@ void ntb_unregister_client(struct ntb_client *drv)
364} 364}
365EXPORT_SYMBOL_GPL(ntb_unregister_client); 365EXPORT_SYMBOL_GPL(ntb_unregister_client);
366 366
367static int debugfs_open(struct inode *inode, struct file *filp)
368{
369 filp->private_data = inode->i_private;
370 return 0;
371}
372
373static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count, 367static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
374 loff_t *offp) 368 loff_t *offp)
375{ 369{
@@ -425,7 +419,7 @@ static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
425 419
426static const struct file_operations ntb_qp_debugfs_stats = { 420static const struct file_operations ntb_qp_debugfs_stats = {
427 .owner = THIS_MODULE, 421 .owner = THIS_MODULE,
428 .open = debugfs_open, 422 .open = simple_open,
429 .read = debugfs_read, 423 .read = debugfs_read,
430}; 424};
431 425