summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2016-08-13 23:27:15 +0200
committerMartin Roth <martinroth@google.com>2016-08-19 03:02:53 +0200
commit82bd0c352ce75bdc699dbd0940b04e83986dcde5 (patch)
tree8ec7af380c4c04b8b5f60f2267c914736d15e7d9 /src
parent8dc20bb698c466141ca06a18fa14594215b374b8 (diff)
bd82x6x/pch: move global variables to static variables in functions
Change-Id: I9e5795f9d601e5d2e7331715e5cd3848389cd594 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/16213 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src')
-rw-r--r--src/southbridge/intel/bd82x6x/pch.c4
1 files 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__