diff options
author | Olof Johansson <olof@lixom.net> | 2012-10-09 17:05:11 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-10-09 18:00:56 -0400 |
commit | ccd7e49c241d8db86d7935a3976d11f2e2301d1f (patch) | |
tree | 8520198355ea5e01aafde30a8cc77a5229e30661 /drivers | |
parent | aa8bd5969e90af0bd146b466f4f2c7c0c8992eab (diff) | |
parent | fce680e9faaa8acc0ab0a931c5fa823b581cbab0 (diff) |
Merge tag 'omap-for-v3.7-rc1/fixes-pm-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
From Kevin Hilman <khilman@deeprootsystems.com> via Tony Lindgren:
OMAP PM related fixes for v3.7-rc
* tag 'omap-for-v3.7-rc1/fixes-pm-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: OMAP: SmartReflex: fix error path in init function
ARM: OMAP: SmartReflex: select CONFIG_POWER_SUPPLY in Kconfig
ARM: OMAP2+: PM: fix return value check in omap2_set_init_voltage()
ARM: OMAP2+: SmartReflex: fix return value check in sr_dev_init()
ARM: OMAP: omap_device: fix return value check in omap_device_build_ss()
ARM: OMAP: fix return value check in beagle_opp_init()
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/avs/smartreflex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/power/avs/smartreflex.c b/drivers/power/avs/smartreflex.c index d4957b4edb62..24768a27e1d8 100644 --- a/drivers/power/avs/smartreflex.c +++ b/drivers/power/avs/smartreflex.c | |||
@@ -930,7 +930,7 @@ static int __init omap_sr_probe(struct platform_device *pdev) | |||
930 | if (!sr_info->base) { | 930 | if (!sr_info->base) { |
931 | dev_err(&pdev->dev, "%s: ioremap fail\n", __func__); | 931 | dev_err(&pdev->dev, "%s: ioremap fail\n", __func__); |
932 | ret = -ENOMEM; | 932 | ret = -ENOMEM; |
933 | goto err_release_region; | 933 | goto err_free_name; |
934 | } | 934 | } |
935 | 935 | ||
936 | if (irq) | 936 | if (irq) |
@@ -969,7 +969,7 @@ static int __init omap_sr_probe(struct platform_device *pdev) | |||
969 | dev_err(&pdev->dev, "%s: Unable to create debugfs directory\n", | 969 | dev_err(&pdev->dev, "%s: Unable to create debugfs directory\n", |
970 | __func__); | 970 | __func__); |
971 | ret = PTR_ERR(sr_info->dbg_dir); | 971 | ret = PTR_ERR(sr_info->dbg_dir); |
972 | goto err_free_name; | 972 | goto err_debugfs; |
973 | } | 973 | } |
974 | 974 | ||
975 | (void) debugfs_create_file("autocomp", S_IRUGO | S_IWUSR, | 975 | (void) debugfs_create_file("autocomp", S_IRUGO | S_IWUSR, |
@@ -1013,11 +1013,11 @@ static int __init omap_sr_probe(struct platform_device *pdev) | |||
1013 | 1013 | ||
1014 | err_debugfs: | 1014 | err_debugfs: |
1015 | debugfs_remove_recursive(sr_info->dbg_dir); | 1015 | debugfs_remove_recursive(sr_info->dbg_dir); |
1016 | err_free_name: | ||
1017 | kfree(sr_info->name); | ||
1018 | err_iounmap: | 1016 | err_iounmap: |
1019 | list_del(&sr_info->node); | 1017 | list_del(&sr_info->node); |
1020 | iounmap(sr_info->base); | 1018 | iounmap(sr_info->base); |
1019 | err_free_name: | ||
1020 | kfree(sr_info->name); | ||
1021 | err_release_region: | 1021 | err_release_region: |
1022 | release_mem_region(mem->start, resource_size(mem)); | 1022 | release_mem_region(mem->start, resource_size(mem)); |
1023 | err_free_devinfo: | 1023 | err_free_devinfo: |