summaryrefslogtreecommitdiff
path: root/src/soc/intel/icelake
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2019-07-06 23:01:15 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-07-07 07:52:53 +0000
commit451ef598e6d4caff5cb8d9d798bfbb2b6874f627 (patch)
tree1b62edc481365dc23f7c70ca40deebe34e6ae40b /src/soc/intel/icelake
parent0478037e1106240928fa5889ee0e620b859d3cfc (diff)
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>
Diffstat (limited to 'src/soc/intel/icelake')
-rw-r--r--src/soc/intel/icelake/pmc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/soc/intel/icelake/pmc.c b/src/soc/intel/icelake/pmc.c
index 25913a8904..053d7e8e46 100644
--- a/src/soc/intel/icelake/pmc.c
+++ b/src/soc/intel/icelake/pmc.c
@@ -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();