summaryrefslogtreecommitdiff
path: root/drivers/video/b2r2/b2r2_blt_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/b2r2/b2r2_blt_main.c')
-rw-r--r--drivers/video/b2r2/b2r2_blt_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/b2r2/b2r2_blt_main.c b/drivers/video/b2r2/b2r2_blt_main.c
index f79bfaee9ab..919de1ef0ee 100644
--- a/drivers/video/b2r2/b2r2_blt_main.c
+++ b/drivers/video/b2r2/b2r2_blt_main.c
@@ -3305,7 +3305,7 @@ int b2r2_blt_module_init(struct b2r2_control *cont)
#ifdef CONFIG_DEBUG_FS
/* Register debug fs */
- if (cont->debugfs_root_dir) {
+ if (!IS_ERR_OR_NULL(cont->debugfs_root_dir)) {
debugfs_create_file("last_request", 0666,
cont->debugfs_root_dir,
cont, &debugfs_b2r2_blt_request_fops);
@@ -3341,7 +3341,7 @@ void b2r2_blt_module_exit(struct b2r2_control *cont)
if (cont) {
b2r2_log_info(cont->dev, "%s\n", __func__);
#ifdef CONFIG_DEBUG_FS
- if (cont->debugfs_root_dir) {
+ if (!IS_ERR_OR_NULL(cont->debugfs_root_dir)) {
debugfs_remove_recursive(cont->debugfs_root_dir);
cont->debugfs_root_dir = NULL;
}