Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251840
b: refs/heads/master
c: 0c49cc1
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Tony Lindgren committed May 3, 2011
1 parent 164d3b0 commit 164ee82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: da9e7392f4b0c295a47ec7def38629959eb51ff2
refs/heads/master: 0c49cc167c6365a1a514b1e44d7fa8378ff16c4c
10 changes: 6 additions & 4 deletions trunk/arch/arm/mach-omap2/smartreflex.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,15 +904,15 @@ static int __init omap_sr_probe(struct platform_device *pdev)
vdd_dbg_dir = omap_voltage_get_dbgdir(sr_info->voltdm);
if (!vdd_dbg_dir) {
ret = -EINVAL;
goto err_release_region;
goto err_iounmap;
}

sr_info->dbg_dir = debugfs_create_dir("smartreflex", vdd_dbg_dir);
if (IS_ERR(sr_info->dbg_dir)) {
dev_err(&pdev->dev, "%s: Unable to create debugfs directory\n",
__func__);
ret = PTR_ERR(sr_info->dbg_dir);
goto err_release_region;
goto err_iounmap;
}

(void) debugfs_create_file("autocomp", S_IRUGO | S_IWUSR,
Expand All @@ -929,7 +929,7 @@ static int __init omap_sr_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "%s: Unable to create debugfs directory"
"for n-values\n", __func__);
ret = PTR_ERR(nvalue_dir);
goto err_release_region;
goto err_iounmap;
}

omap_voltage_get_volttable(sr_info->voltdm, &volt_data);
Expand All @@ -939,7 +939,7 @@ static int __init omap_sr_probe(struct platform_device *pdev)
"entries for n-values\n",
__func__, sr_info->voltdm->name);
ret = -ENODATA;
goto err_release_region;
goto err_iounmap;
}

for (i = 0; i < sr_info->nvalue_count; i++) {
Expand All @@ -953,6 +953,8 @@ static int __init omap_sr_probe(struct platform_device *pdev)

return ret;

err_iounmap:
iounmap(sr_info->base);
err_release_region:
release_mem_region(mem->start, resource_size(mem));
err_free_devinfo:
Expand Down

0 comments on commit 164ee82

Please sign in to comment.