diff options
-rw-r--r-- | arch/arm/mach-omap2/pm-debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index e2c291f52f92..548547e14796 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c | |||
@@ -219,7 +219,7 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *dir) | |||
219 | return 0; | 219 | return 0; |
220 | 220 | ||
221 | d = debugfs_create_dir(pwrdm->name, (struct dentry *)dir); | 221 | d = debugfs_create_dir(pwrdm->name, (struct dentry *)dir); |
222 | if (!(IS_ERR_OR_NULL(d))) | 222 | if (d) |
223 | (void) debugfs_create_file("suspend", S_IRUGO|S_IWUSR, d, | 223 | (void) debugfs_create_file("suspend", S_IRUGO|S_IWUSR, d, |
224 | (void *)pwrdm, &pwrdm_suspend_fops); | 224 | (void *)pwrdm, &pwrdm_suspend_fops); |
225 | 225 | ||
@@ -263,8 +263,8 @@ static int __init pm_dbg_init(void) | |||
263 | return 0; | 263 | return 0; |
264 | 264 | ||
265 | d = debugfs_create_dir("pm_debug", NULL); | 265 | d = debugfs_create_dir("pm_debug", NULL); |
266 | if (IS_ERR_OR_NULL(d)) | 266 | if (!d) |
267 | return PTR_ERR(d); | 267 | return -EINVAL; |
268 | 268 | ||
269 | (void) debugfs_create_file("count", S_IRUGO, | 269 | (void) debugfs_create_file("count", S_IRUGO, |
270 | d, (void *)DEBUG_FILE_COUNTERS, &debug_fops); | 270 | d, (void *)DEBUG_FILE_COUNTERS, &debug_fops); |