Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295708
b: refs/heads/master
c: 401606f
h: refs/heads/master
v: v3
  • Loading branch information
Jean Pihet authored and Kevin Hilman committed Mar 5, 2012
1 parent fd63c6d commit 593dbbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92206fd292da7632c039f6c4054bdaac08b030c0
refs/heads/master: 401606fd708885d28ce3c14a2a8fe612f8a6b50f
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-omap2/pm-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *dir)
return 0;

d = debugfs_create_dir(pwrdm->name, (struct dentry *)dir);

(void) debugfs_create_file("suspend", S_IRUGO|S_IWUSR, d,
if (!(IS_ERR_OR_NULL(d)))
(void) debugfs_create_file("suspend", S_IRUGO|S_IWUSR, d,
(void *)pwrdm, &pwrdm_suspend_fops);

return 0;
Expand Down Expand Up @@ -264,7 +264,7 @@ static int __init pm_dbg_init(void)
return 0;

d = debugfs_create_dir("pm_debug", NULL);
if (IS_ERR(d))
if (IS_ERR_OR_NULL(d))
return PTR_ERR(d);

(void) debugfs_create_file("count", S_IRUGO,
Expand Down

0 comments on commit 593dbbe

Please sign in to comment.