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)
This commit is contained in:
		| @@ -26,11 +26,10 @@ | |||||||
| #endif | #endif | ||||||
| #include "pch.h" | #include "pch.h" | ||||||
|  |  | ||||||
| static int pch_revision_id = -1; |  | ||||||
| static int pch_type = -1; |  | ||||||
|  |  | ||||||
| int pch_silicon_revision(void) | int pch_silicon_revision(void) | ||||||
| { | { | ||||||
|  | 	static int pch_revision_id = -1; | ||||||
| 	device_t dev; | 	device_t dev; | ||||||
|  |  | ||||||
| #ifdef __SMM__ | #ifdef __SMM__ | ||||||
| @@ -46,6 +45,7 @@ int pch_silicon_revision(void) | |||||||
|  |  | ||||||
| int pch_silicon_type(void) | int pch_silicon_type(void) | ||||||
| { | { | ||||||
|  | 	static int pch_type = -1; | ||||||
| 	device_t dev; | 	device_t dev; | ||||||
|  |  | ||||||
| #ifdef __SMM__ | #ifdef __SMM__ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user