diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-11-02 22:49:03 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:04:35 +0000 |
commit | 0b7813fe97121eb7cb9c0b8ac59e604e9f613679 (patch) | |
tree | 3cb6d15c7ee8480df482aab52947867b376846f4 /src/superio/winbond/w83627hf/superio.c | |
parent | 3a782b1710df9c75447b453dcc5c7dc195fcaed0 (diff) |
superio: Use get_int_option()
Change-Id: Ia46b622c52f98d4cc5fb7d9b02e2aeb366ef3915
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47136
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/superio/winbond/w83627hf/superio.c')
-rw-r--r-- | src/superio/winbond/w83627hf/superio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/superio/winbond/w83627hf/superio.c b/src/superio/winbond/w83627hf/superio.c index c6d2f577cc..5af2d37c45 100644 --- a/src/superio/winbond/w83627hf/superio.c +++ b/src/superio/winbond/w83627hf/superio.c @@ -23,9 +23,7 @@ static void enable_hwm_smbus(struct device *dev) static void init_acpi(struct device *dev) { u8 value; - int power_on = 1; - - get_option(&power_on, "power_on_after_fail"); + int power_on = get_int_option("power_on_after_fail", 1); pnp_enter_conf_mode(dev); pnp_set_logical_device(dev); |