summaryrefslogtreecommitdiff
path: root/drivers/edgetpu/abrolhos-pm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edgetpu/abrolhos-pm.c')
-rw-r--r--drivers/edgetpu/abrolhos-pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edgetpu/abrolhos-pm.c b/drivers/edgetpu/abrolhos-pm.c
index b8a12eb..75a3c59 100644
--- a/drivers/edgetpu/abrolhos-pm.c
+++ b/drivers/edgetpu/abrolhos-pm.c
@@ -639,7 +639,7 @@ static int abrolhos_pm_after_create(struct edgetpu_pm *etpm)
return ret;
abrolhos_pwr_debugfs_dir =
debugfs_create_dir("power", edgetpu_fs_debugfs_dir());
- if (!abrolhos_pwr_debugfs_dir) {
+ if (IS_ERR_OR_NULL(abrolhos_pwr_debugfs_dir)) {
etdev_warn(etdev, "Failed to create debug FS power");
/* don't fail the procedure on debug FS creation fails */
return 0;