ACPI S3: Cleanup RSDP reference

Variable name shadows parameter name used on other functions,
and it can be local anyway after function removal.

Change-Id: I3164b15b33d877fef139f48ab2091e60e3124c3b
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/15240
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Kyösti Mälkki 2016-06-17 08:44:40 +03:00
parent f2a50d1231
commit 072d436b3f
2 changed files with 1 additions and 10 deletions

View File

@ -1071,24 +1071,16 @@ static acpi_rsdp_t *valid_rsdp(acpi_rsdp_t *rsdp)
return rsdp; return rsdp;
} }
static acpi_rsdp_t *rsdp;
void *acpi_get_wakeup_rsdp(void)
{
return rsdp;
}
void *acpi_find_wakeup_vector(void) void *acpi_find_wakeup_vector(void)
{ {
char *p, *end; char *p, *end;
acpi_rsdt_t *rsdt; acpi_rsdt_t *rsdt;
acpi_facs_t *facs; acpi_facs_t *facs;
acpi_fadt_t *fadt = NULL; acpi_fadt_t *fadt = NULL;
acpi_rsdp_t *rsdp = NULL;
void *wake_vec; void *wake_vec;
int i; int i;
rsdp = NULL;
if (!acpi_is_wakeup()) if (!acpi_is_wakeup())
return NULL; return NULL;

View File

@ -614,7 +614,6 @@ void acpi_resume(void *wake_vec);
void acpi_prepare_resume_backup(void); void acpi_prepare_resume_backup(void);
void mainboard_suspend_resume(void); void mainboard_suspend_resume(void);
void *acpi_find_wakeup_vector(void); void *acpi_find_wakeup_vector(void);
void *acpi_get_wakeup_rsdp(void);
void acpi_jump_to_wakeup(void *wakeup_addr); void acpi_jump_to_wakeup(void *wakeup_addr);
/* Returns 0 = S0, 1 = S1 ... */ /* Returns 0 = S0, 1 = S1 ... */