summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-03-31 08:27:41 +0200
committerTony Lindgren <tony@atomide.com>2021-03-31 08:27:41 +0200
commitfc85dc42a38405099f97aa2af709fe9504a82508 (patch)
treedf53f38881a6b8a165326cc0123e23eaaba883f0
parentARM: dts: Fix swapped mmc order for omap3 (diff)
downloadlinux-fc85dc42a38405099f97aa2af709fe9504a82508.tar.xz
linux-fc85dc42a38405099f97aa2af709fe9504a82508.zip
ARM: OMAP2+: Fix uninitialized sr_inst
Fix uninitialized sr_inst. Fixes: fbfa463be8dc ("ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/sr_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c
index 17b66f0d0dee..605925684b0a 100644
--- a/arch/arm/mach-omap2/sr_device.c
+++ b/arch/arm/mach-omap2/sr_device.c
@@ -188,7 +188,7 @@ static const char * const dra7_sr_instances[] = {
int __init omap_devinit_smartreflex(void)
{
- const char * const *sr_inst;
+ const char * const *sr_inst = NULL;
int i, nr_sr = 0;
if (soc_is_omap44xx()) {