From c6d0ff87b381e1c97fb5fd9517d7a4f27f3627b1 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Sat, 13 Aug 2016 23:27:15 +0200 Subject: [PATCH] UPSTREAM: bd82x6x/pch: move global variables to static variables in functions BUG=None BRANCH=None TEST=None Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/16213 Reviewed-by: Stefan Reinauer Change-Id: I9e5795f9d601e5d2e7331715e5cd3848389cd594 Reviewed-on: https://chromium-review.googlesource.com/373032 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- src/southbridge/intel/bd82x6x/pch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/southbridge/intel/bd82x6x/pch.c b/src/southbridge/intel/bd82x6x/pch.c index 4a5b1c2845..974abb1368 100644 --- a/src/southbridge/intel/bd82x6x/pch.c +++ b/src/southbridge/intel/bd82x6x/pch.c @@ -26,11 +26,10 @@ #endif #include "pch.h" -static int pch_revision_id = -1; -static int pch_type = -1; int pch_silicon_revision(void) { + static int pch_revision_id = -1; device_t dev; #ifdef __SMM__ @@ -46,6 +45,7 @@ int pch_silicon_revision(void) int pch_silicon_type(void) { + static int pch_type = -1; device_t dev; #ifdef __SMM__