dma-buf: remove dma_buf_debugfs_create_file()
authorMathias Krause <minipli@googlemail.com>
Sun, 19 Jun 2016 12:31:31 +0000 (14:31 +0200)
committerSumit Semwal <sumit.semwal@linaro.org>
Mon, 20 Jun 2016 16:56:37 +0000 (22:26 +0530)
commitbd3e22088f41a16b4c362622c91243f9f4fd7dcb
tree90433223c06f73c82157b76802ae8774ba1e74b2
parentb7479990435713b00870df3c1d98ff66f6ef1ba2
dma-buf: remove dma_buf_debugfs_create_file()

There is only a single user of dma_buf_debugfs_create_file() and that
one got the function pointer cast wrong. With that one fixed, there is
no need to have a wrapper for debugfs_create_file(), just call it
directly.

With no users left, we can remove dma_buf_debugfs_create_file().

While at it, simplify the error handling in dma_buf_init_debugfs()
slightly.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1466339491-12639-2-git-send-email-minipli@googlemail.com
drivers/dma-buf/dma-buf.c
include/linux/dma-buf.h