soc/intel/icelake: Get rid of unused dev param

This change gets rid of unused dev param to pmc_set_afterg3.

BUG=b:136861224

Change-Id: I861bb132acf113c9d306175b670bf4a1ff742c28
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34119
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
This commit is contained in:
Furquan Shaikh 2019-07-06 23:01:15 -07:00 committed by Patrick Georgi
parent 0478037e11
commit 451ef598e6
1 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@
* Set which power state system will be after reapplying
* the power (from G3 State)
*/
static void pmc_set_afterg3(struct device *dev, int s5pwr)
static void pmc_set_afterg3(int s5pwr)
{
uint8_t reg8;
uint8_t *pmcbase = pmc_mmio_regs();
@ -58,7 +58,7 @@ static void pmc_set_afterg3(struct device *dev, int s5pwr)
*/
void pmc_soc_restore_power_failure(void)
{
pmc_set_afterg3(PCH_DEV_PMC, CONFIG_MAINBOARD_POWER_FAILURE_STATE);
pmc_set_afterg3(CONFIG_MAINBOARD_POWER_FAILURE_STATE);
}
static void config_deep_sX(uint32_t offset, uint32_t mask, int sx, int enable)
@ -102,7 +102,7 @@ static void config_deep_sx(uint32_t deepsx_config)
write32(pmcbase + DSX_CFG, reg);
}
static void pch_power_options(struct device *dev)
static void pch_power_options(void)
{
const char *state;
@ -127,7 +127,7 @@ static void pch_power_options(struct device *dev)
default:
state = "undefined";
}
pmc_set_afterg3(dev, pwr_on);
pmc_set_afterg3(pwr_on);
printk(BIOS_INFO, "Set power %s after power failure.\n", state);
/* Set up GPE configuration. */
@ -142,7 +142,7 @@ static void pmc_init(void *unused)
rtc_init();
/* Initialize power management */
pch_power_options(dev);
pch_power_options();
pmc_set_acpi_mode();