video: rockchip: mpp: fix compile warning if !DEBUG_FS

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I181025ef7324c704a7f745d790f59e1780a3c0cb
This commit is contained in:
Tao Huang
2019-12-03 15:18:14 +08:00
parent f070ac5526
commit 4a448336e4
5 changed files with 10 additions and 10 deletions

View File

@@ -966,14 +966,14 @@ static int rkvdec_debugfs_remove(struct mpp_dev *mpp)
static int rkvdec_debugfs_init(struct mpp_dev *mpp)
{
struct rkvdec_dev *dec = to_rkvdec_dev(mpp);
struct device_node *np = mpp->dev->of_node;
dec->aclk_debug = 0;
dec->clk_core_debug = 0;
dec->clk_cabac_debug = 0;
dec->session_max_buffers_debug = 0;
#ifdef CONFIG_DEBUG_FS
dec->debugfs = debugfs_create_dir(np->name, mpp->srv->debugfs);
dec->debugfs = debugfs_create_dir(mpp->dev->of_node->name,
mpp->srv->debugfs);
if (IS_ERR_OR_NULL(dec->debugfs)) {
mpp_err("failed on open debugfs\n");
dec->debugfs = NULL;

View File

@@ -441,13 +441,13 @@ static int vdpu_debugfs_remove(struct mpp_dev *mpp)
static int vdpu_debugfs_init(struct mpp_dev *mpp)
{
struct vdpu_dev *dec = to_vdpu_dev(mpp);
struct device_node *np = mpp->dev->of_node;
dec->aclk_debug = 0;
dec->session_max_buffers_debug = 0;
#ifdef CONFIG_DEBUG_FS
dec->debugfs = debugfs_create_dir(np->name, mpp->srv->debugfs);
dec->debugfs = debugfs_create_dir(mpp->dev->of_node->name,
mpp->srv->debugfs);
if (IS_ERR_OR_NULL(dec->debugfs)) {
mpp_err("failed on open debugfs\n");
dec->debugfs = NULL;

View File

@@ -403,12 +403,12 @@ static int vdpu_debugfs_remove(struct mpp_dev *mpp)
static int vdpu_debugfs_init(struct mpp_dev *mpp)
{
struct vdpu_dev *dec = to_vdpu_dev(mpp);
struct device_node *np = mpp->dev->of_node;
dec->aclk_debug = 0;
dec->session_max_buffers_debug = 0;
#ifdef CONFIG_DEBUG_FS
dec->debugfs = debugfs_create_dir(np->name, mpp->srv->debugfs);
dec->debugfs = debugfs_create_dir(mpp->dev->of_node->name,
mpp->srv->debugfs);
if (IS_ERR_OR_NULL(dec->debugfs)) {
mpp_err("failed on open debugfs\n");
dec->debugfs = NULL;

View File

@@ -361,12 +361,12 @@ static int vepu_debugfs_remove(struct mpp_dev *mpp)
static int vepu_debugfs_init(struct mpp_dev *mpp)
{
struct vepu_dev *enc = to_vepu_dev(mpp);
struct device_node *np = mpp->dev->of_node;
enc->aclk_debug = 0;
enc->session_max_buffers_debug = 0;
#ifdef CONFIG_DEBUG_FS
enc->debugfs = debugfs_create_dir(np->name, mpp->srv->debugfs);
enc->debugfs = debugfs_create_dir(mpp->dev->of_node->name,
mpp->srv->debugfs);
if (IS_ERR_OR_NULL(enc->debugfs)) {
mpp_err("failed on open debugfs\n");
enc->debugfs = NULL;

View File

@@ -367,12 +367,12 @@ static int vepu_debugfs_remove(struct mpp_dev *mpp)
static int vepu_debugfs_init(struct mpp_dev *mpp)
{
struct vepu_dev *enc = to_vepu_dev(mpp);
struct device_node *np = mpp->dev->of_node;
enc->aclk_debug = 0;
enc->session_max_buffers_debug = 0;
#ifdef CONFIG_DEBUG_FS
enc->debugfs = debugfs_create_dir(np->name, mpp->srv->debugfs);
enc->debugfs = debugfs_create_dir(mpp->dev->of_node->name,
mpp->srv->debugfs);
if (IS_ERR_OR_NULL(enc->debugfs)) {
mpp_err("failed on open debugfs\n");
enc->debugfs = NULL;