summaryrefslogtreecommitdiff
path: root/src/superio/ite
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/ite')
-rw-r--r--src/superio/ite/it8712f/superio.c3
-rw-r--r--src/superio/ite/it8716f/superio.c3
-rw-r--r--src/superio/ite/it8772f/superio.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/superio/ite/it8712f/superio.c b/src/superio/ite/it8712f/superio.c
index bf649dac7a..66b0aecdf0 100644
--- a/src/superio/ite/it8712f/superio.c
+++ b/src/superio/ite/it8712f/superio.c
@@ -89,8 +89,7 @@ static void it8712f_pnp_enable_resources(device_t dev)
static void it8712f_pnp_enable(device_t dev)
{
pnp_enter_ext_func_mode(dev);
- pnp_set_logical_device(dev);
- pnp_set_enable(dev, !!dev->enabled);
+ pnp_alt_enable(dev);
pnp_exit_ext_func_mode(dev);
}
diff --git a/src/superio/ite/it8716f/superio.c b/src/superio/ite/it8716f/superio.c
index 98b673214d..f021a0b7d8 100644
--- a/src/superio/ite/it8716f/superio.c
+++ b/src/superio/ite/it8716f/superio.c
@@ -113,8 +113,7 @@ static void it8716f_pnp_enable_resources(device_t dev)
static void it8716f_pnp_enable(device_t dev)
{
pnp_enter_ext_func_mode(dev);
- pnp_set_logical_device(dev);
- pnp_set_enable(dev, !!dev->enabled);
+ pnp_alt_enable(dev);
pnp_exit_ext_func_mode(dev);
}
diff --git a/src/superio/ite/it8772f/superio.c b/src/superio/ite/it8772f/superio.c
index b6c4405d9b..de1c17908a 100644
--- a/src/superio/ite/it8772f/superio.c
+++ b/src/superio/ite/it8772f/superio.c
@@ -205,8 +205,7 @@ static void it8772f_pnp_enable_resources(device_t dev)
static void it8772f_pnp_enable(device_t dev)
{
pnp_enter_ext_func_mode(dev);
- pnp_set_logical_device(dev);
- pnp_set_enable(dev, !!dev->enabled);
+ pnp_alt_enable(dev);
pnp_exit_ext_func_mode(dev);
}