diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2011-01-05 05:57:02 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-01-07 16:33:09 -0500 |
commit | d7e08f1b8fcb85968c35ddecbf912bdab4cf2508 (patch) | |
tree | b04b98a5d842980e0f56822ccb21effb64b542bc /arch/arm/plat-omap/include | |
parent | 302991379c2940975cd9c6dc377abe0b522b5010 (diff) |
omap2plus: voltage: Trivial warning fix 'no return statement'
Fix below build warnings
CC arch/arm/mach-omap2/common.o
CC arch/arm/mach-omap2/gpio.o
In file included from arch/arm/plat-omap/include/plat/omap_hwmod.h:38,
from arch/arm/mach-omap2/gpio.c:25:
arch/arm/plat-omap/include/plat/voltage.h: In function 'omap_voltage_register_pmic':
arch/arm/plat-omap/include/plat/voltage.h:137: warning: no return statement in function returning non-void
CC arch/arm/mach-omap2/dma.o
In file included from arch/arm/plat-omap/include/plat/omap_hwmod.h:38,
from arch/arm/mach-omap2/dma.c:32:
arch/arm/plat-omap/include/plat/voltage.h: In function 'omap_voltage_register_pmic':
arch/arm/plat-omap/include/plat/voltage.h:137: warning: no return statement in function returning non-void
CC arch/arm/mach-omap2/wd_timer.o
In file included from arch/arm/plat-omap/include/plat/omap_hwmod.h:38,
from arch/arm/mach-omap2/wd_timer.c:15:
arch/arm/plat-omap/include/plat/voltage.h: In function 'omap_voltage_register_pmic':
arch/arm/plat-omap/include/plat/voltage.h:137: warning: no return statement in function returning non-void
CC arch/arm/mach-omap2/prm44xx.o
CC arch/arm/mach-omap2/omap_hwmod.o
In file included from arch/arm/plat-omap/include/plat/omap_hwmod.h:38,
from arch/arm/mach-omap2/omap_hwmod.c:145:
arch/arm/plat-omap/include/plat/voltage.h: In function 'omap_voltage_register_pmic':
arch/arm/plat-omap/include/plat/voltage.h:137: warning: no return statement in function returning non-void
CC arch/arm/mach-omap2/omap_hwmod_common_data.o
In file included from arch/arm/plat-omap/include/plat/omap_hwmod.h:38,
from arch/arm/mach-omap2/omap_hwmod_common_data.c:20:
arch/arm/plat-omap/include/plat/voltage.h: In function 'omap_voltage_register_pmic':
arch/arm/plat-omap/include/plat/voltage.h:137: warning: no return statement in function returning non-void
The error is reported when omap2plus_defconfig built with CONFIG_PM disabled
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Thara Gopinath <thara@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/plat/voltage.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/include/plat/voltage.h b/arch/arm/plat-omap/include/plat/voltage.h index 0ff123399f3b..9943c667f8e1 100644 --- a/arch/arm/plat-omap/include/plat/voltage.h +++ b/arch/arm/plat-omap/include/plat/voltage.h | |||
@@ -134,7 +134,10 @@ void omap_change_voltscale_method(struct voltagedomain *voltdm, | |||
134 | int omap_voltage_late_init(void); | 134 | int omap_voltage_late_init(void); |
135 | #else | 135 | #else |
136 | static inline int omap_voltage_register_pmic(struct voltagedomain *voltdm, | 136 | static inline int omap_voltage_register_pmic(struct voltagedomain *voltdm, |
137 | struct omap_volt_pmic_info *pmic_info) {} | 137 | struct omap_volt_pmic_info *pmic_info) |
138 | { | ||
139 | return -EINVAL; | ||
140 | } | ||
138 | static inline void omap_change_voltscale_method(struct voltagedomain *voltdm, | 141 | static inline void omap_change_voltscale_method(struct voltagedomain *voltdm, |
139 | int voltscale_method) {} | 142 | int voltscale_method) {} |
140 | static inline int omap_voltage_late_init(void) | 143 | static inline int omap_voltage_late_init(void) |