Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292004
b: refs/heads/master
c: f4d562c
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Feb 21, 2012
1 parent c37ba8e commit e474e43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: b29c7690a764b9829b1034f873f97b7bbfa19565
refs/heads/master: f4d562c6e616bb686f43d38752b2e5b83359e1fc
9 changes: 4 additions & 5 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ static void rdev_init_debugfs(struct regulator_dev *rdev)
{
#ifdef CONFIG_DEBUG_FS
rdev->debugfs = debugfs_create_dir(rdev_get_name(rdev), debugfs_root);
if (IS_ERR(rdev->debugfs) || !rdev->debugfs) {
if (IS_ERR_OR_NULL(rdev->debugfs)) {
rdev_warn(rdev, "Failed to create debugfs directory\n");
rdev->debugfs = NULL;
return;
Expand Down Expand Up @@ -3127,14 +3127,13 @@ static int __init regulator_init(void)

#ifdef CONFIG_DEBUG_FS
debugfs_root = debugfs_create_dir("regulator", NULL);
if (IS_ERR(debugfs_root) || !debugfs_root) {
if (IS_ERR_OR_NULL(debugfs_root)) {
pr_warn("regulator: Failed to create debugfs directory\n");
debugfs_root = NULL;
}

if (IS_ERR(debugfs_create_file("supply_map", 0444, debugfs_root,
NULL, &supply_map_fops)))
pr_warn("regulator: Failed to create supplies debugfs\n");
debugfs_create_file("supply_map", 0444, debugfs_root, NULL,
&supply_map_fops);
#endif

regulator_dummy_init();
Expand Down

0 comments on commit e474e43

Please sign in to comment.