soc/intel/broadwell: Make broadwell_init_pre_device static
				
					
				
			This small function is only used in one place. Change-Id: Ieccdca60fb7837b6406a6b2fd7ebae86958a1afe Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49945 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		@@ -6,8 +6,6 @@
 | 
				
			|||||||
#include <device/device.h>
 | 
					#include <device/device.h>
 | 
				
			||||||
#include <soc/intel/broadwell/chip.h>
 | 
					#include <soc/intel/broadwell/chip.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void broadwell_init_pre_device(void *chip_info);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if CONFIG(HAVE_REFCODE_BLOB)
 | 
					#if CONFIG(HAVE_REFCODE_BLOB)
 | 
				
			||||||
void broadwell_run_reference_code(void);
 | 
					void broadwell_run_reference_code(void);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -474,6 +474,11 @@ static void broadwell_enable(struct device *dev)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static void broadwell_init_pre_device(void *chip_info)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						broadwell_run_reference_code();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct chip_operations soc_intel_broadwell_ops = {
 | 
					struct chip_operations soc_intel_broadwell_ops = {
 | 
				
			||||||
	CHIP_NAME("Intel Broadwell")
 | 
						CHIP_NAME("Intel Broadwell")
 | 
				
			||||||
	.enable_dev = &broadwell_enable,
 | 
						.enable_dev = &broadwell_enable,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,6 @@
 | 
				
			|||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <soc/nvs.h>
 | 
					#include <soc/nvs.h>
 | 
				
			||||||
#include <soc/pm.h>
 | 
					#include <soc/pm.h>
 | 
				
			||||||
#include <soc/ramstage.h>
 | 
					 | 
				
			||||||
#include <soc/intel/broadwell/chip.h>
 | 
					#include <soc/intel/broadwell/chip.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Save bit index for PM1_STS and GPE_STS for ACPI _SWS */
 | 
					/* Save bit index for PM1_STS and GPE_STS for ACPI _SWS */
 | 
				
			||||||
@@ -73,8 +72,3 @@ static void acpi_save_wake_source(void *unused)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, acpi_save_wake_source, NULL);
 | 
					BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, acpi_save_wake_source, NULL);
 | 
				
			||||||
 | 
					 | 
				
			||||||
void broadwell_init_pre_device(void *chip_info)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	broadwell_run_reference_code();
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user