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 /arch | |
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 'arch')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/pm.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/sr_device.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/plat-omap/omap_device.c | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 68ff8d51973c..79d4820b291b 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -461,7 +461,7 @@ static void __init beagle_opp_init(void) | |||
461 | mpu_dev = omap_device_get_by_hwmod_name("mpu"); | 461 | mpu_dev = omap_device_get_by_hwmod_name("mpu"); |
462 | iva_dev = omap_device_get_by_hwmod_name("iva"); | 462 | iva_dev = omap_device_get_by_hwmod_name("iva"); |
463 | 463 | ||
464 | if (!mpu_dev || !iva_dev) { | 464 | if (IS_ERR(mpu_dev) || IS_ERR(iva_dev)) { |
465 | pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n", | 465 | pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n", |
466 | __func__, mpu_dev, iva_dev); | 466 | __func__, mpu_dev, iva_dev); |
467 | return; | 467 | return; |
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index abefbc4d8e0b..1e40afe7ed3c 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
@@ -177,7 +177,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, | |||
177 | } | 177 | } |
178 | 178 | ||
179 | voltdm = voltdm_lookup(vdd_name); | 179 | voltdm = voltdm_lookup(vdd_name); |
180 | if (IS_ERR(voltdm)) { | 180 | if (!voltdm) { |
181 | pr_err("%s: unable to get vdd pointer for vdd_%s\n", | 181 | pr_err("%s: unable to get vdd pointer for vdd_%s\n", |
182 | __func__, vdd_name); | 182 | __func__, vdd_name); |
183 | goto exit; | 183 | goto exit; |
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c index cbeae56b56a9..f8217a5a4a26 100644 --- a/arch/arm/mach-omap2/sr_device.c +++ b/arch/arm/mach-omap2/sr_device.c | |||
@@ -122,7 +122,7 @@ static int __init sr_dev_init(struct omap_hwmod *oh, void *user) | |||
122 | sr_data->senp_mod = 0x1; | 122 | sr_data->senp_mod = 0x1; |
123 | 123 | ||
124 | sr_data->voltdm = voltdm_lookup(sr_dev_attr->sensor_voltdm_name); | 124 | sr_data->voltdm = voltdm_lookup(sr_dev_attr->sensor_voltdm_name); |
125 | if (IS_ERR(sr_data->voltdm)) { | 125 | if (!sr_data->voltdm) { |
126 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", | 126 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", |
127 | __func__, sr_dev_attr->sensor_voltdm_name); | 127 | __func__, sr_dev_attr->sensor_voltdm_name); |
128 | goto exit; | 128 | goto exit; |
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index c26278172caa..c9d1c3603bbf 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig | |||
@@ -49,6 +49,7 @@ config OMAP_DEBUG_LEDS | |||
49 | config POWER_AVS_OMAP | 49 | config POWER_AVS_OMAP |
50 | bool "AVS(Adaptive Voltage Scaling) support for OMAP IP versions 1&2" | 50 | bool "AVS(Adaptive Voltage Scaling) support for OMAP IP versions 1&2" |
51 | depends on POWER_AVS && (ARCH_OMAP3 || ARCH_OMAP4) && PM | 51 | depends on POWER_AVS && (ARCH_OMAP3 || ARCH_OMAP4) && PM |
52 | select POWER_SUPPLY | ||
52 | help | 53 | help |
53 | Say Y to enable AVS(Adaptive Voltage Scaling) | 54 | Say Y to enable AVS(Adaptive Voltage Scaling) |
54 | support on OMAP containing the version 1 or | 55 | support on OMAP containing the version 1 or |
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index cee85a55bd82..7a7d1f2a65e9 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c | |||
@@ -725,7 +725,7 @@ struct platform_device __init *omap_device_build_ss(const char *pdev_name, int p | |||
725 | dev_set_name(&pdev->dev, "%s", pdev->name); | 725 | dev_set_name(&pdev->dev, "%s", pdev->name); |
726 | 726 | ||
727 | od = omap_device_alloc(pdev, ohs, oh_cnt, pm_lats, pm_lats_cnt); | 727 | od = omap_device_alloc(pdev, ohs, oh_cnt, pm_lats, pm_lats_cnt); |
728 | if (!od) | 728 | if (IS_ERR(od)) |
729 | goto odbs_exit1; | 729 | goto odbs_exit1; |
730 | 730 | ||
731 | ret = platform_device_add_data(pdev, pdata, pdata_len); | 731 | ret = platform_device_add_data(pdev, pdata, pdata_len); |