diff --git a/drivers/video/rockchip/mpp/mpp_rkvdec.c b/drivers/video/rockchip/mpp/mpp_rkvdec.c index 3bca309aa77f..827b7fb86c9c 100644 --- a/drivers/video/rockchip/mpp/mpp_rkvdec.c +++ b/drivers/video/rockchip/mpp/mpp_rkvdec.c @@ -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; diff --git a/drivers/video/rockchip/mpp/mpp_vdpu1.c b/drivers/video/rockchip/mpp/mpp_vdpu1.c index f585a8c30364..35b000f793cc 100644 --- a/drivers/video/rockchip/mpp/mpp_vdpu1.c +++ b/drivers/video/rockchip/mpp/mpp_vdpu1.c @@ -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; diff --git a/drivers/video/rockchip/mpp/mpp_vdpu2.c b/drivers/video/rockchip/mpp/mpp_vdpu2.c index 1c6ba2e5d95b..d6200db3602e 100644 --- a/drivers/video/rockchip/mpp/mpp_vdpu2.c +++ b/drivers/video/rockchip/mpp/mpp_vdpu2.c @@ -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; diff --git a/drivers/video/rockchip/mpp/mpp_vepu1.c b/drivers/video/rockchip/mpp/mpp_vepu1.c index 20ef018e1797..acdacf992a4e 100644 --- a/drivers/video/rockchip/mpp/mpp_vepu1.c +++ b/drivers/video/rockchip/mpp/mpp_vepu1.c @@ -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; diff --git a/drivers/video/rockchip/mpp/mpp_vepu2.c b/drivers/video/rockchip/mpp/mpp_vepu2.c index 24785ab12b1a..d277607e893c 100644 --- a/drivers/video/rockchip/mpp/mpp_vepu2.c +++ b/drivers/video/rockchip/mpp/mpp_vepu2.c @@ -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;