Skip to content

Commit 0cc9314

Browse files
metaliveblogPaul Walmsley
authored andcommitted
OMAP2/3: PRCM: fix misc. compiler warnings
- missing return in omap_prcm_get_reset_sources() - potential use of uninitialized variable in omap_prcm_arch_reset() Signed-off-by: Kevin Hilman <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
1 parent a51ba28 commit 0cc9314

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/arm/mach-omap2/prcm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,15 @@ u32 omap_prcm_get_reset_sources(void)
127127
return prm_read_mod_reg(WKUP_MOD, OMAP2_RM_RSTST) & 0x7f;
128128
if (cpu_is_omap44xx())
129129
return prm_read_mod_reg(WKUP_MOD, OMAP4_RM_RSTST) & 0x7f;
130+
131+
return 0;
130132
}
131133
EXPORT_SYMBOL(omap_prcm_get_reset_sources);
132134

133135
/* Resets clock rates and reboots the system. Only called from system.h */
134136
void omap_prcm_arch_reset(char mode)
135137
{
136-
s16 prcm_offs;
138+
s16 prcm_offs = 0;
137139

138140
if (cpu_is_omap24xx()) {
139141
omap2xxx_clk_prepare_for_reboot();

0 commit comments

Comments
 (0)