summaryrefslogtreecommitdiffstats
path: root/src/superio/ite/it8716f/superio.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2017-12-27 22:11:30 +0100
committerFelix Held <felix-coreboot@felixheld.de>2018-07-18 18:49:40 +0000
commitc40275bce0efb8b79792c7a6f846204b4c317124 (patch)
treee8f81f5970721ddc93b759d5374708de58ba9867 /src/superio/ite/it8716f/superio.c
parent3a59174cf02c8c0afd8eb547f5325788cd3537ea (diff)
downloadcoreboot-c40275bce0efb8b79792c7a6f846204b4c317124.tar.gz
coreboot-c40275bce0efb8b79792c7a6f846204b4c317124.tar.bz2
coreboot-c40275bce0efb8b79792c7a6f846204b4c317124.zip
superio/ite: pass the chip-specific ops struct to pnp_enable_devices
Pass the address of the chip-specific ops struct instead of the one of the generic pnp_ops struct to the PNP device enable function. This allows the removal of the LDN-specific ops overrides which is also done in this patch. Change-Id: I5f03a4064778c419f4b9c50e70db1296addf6c9e Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/23006 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/superio/ite/it8716f/superio.c')
-rw-r--r--src/superio/ite/it8716f/superio.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/superio/ite/it8716f/superio.c b/src/superio/ite/it8716f/superio.c
index b4cd5e6d4541..50ab2b95740f 100644
--- a/src/superio/ite/it8716f/superio.c
+++ b/src/superio/ite/it8716f/superio.c
@@ -75,17 +75,17 @@ static struct device_operations ops = {
};
static struct pnp_info pnp_dev_info[] = {
- { &ops, IT8716F_FDC, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x07f8, },
- { &ops, IT8716F_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, },
- { &ops, IT8716F_SP2, PNP_IO0 | PNP_IRQ0, 0x07f8, },
- { &ops, IT8716F_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x07f8, },
- { &ops, IT8716F_EC, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x07f8, 0x07f8, },
- { &ops, IT8716F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x07ff, 0x07ff, },
- { &ops, IT8716F_KBCM, PNP_IRQ0, },
- { &ops, IT8716F_GPIO, PNP_IO1 | PNP_IO2, 0, 0x07f8, 0x07f8, },
- { &ops, IT8716F_MIDI, PNP_IO0 | PNP_IRQ0, 0x07fe, },
- { &ops, IT8716F_GAME, PNP_IO0, 0x07ff, },
- { &ops, IT8716F_IR, },
+ { NULL, IT8716F_FDC, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x07f8, },
+ { NULL, IT8716F_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, },
+ { NULL, IT8716F_SP2, PNP_IO0 | PNP_IRQ0, 0x07f8, },
+ { NULL, IT8716F_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x07f8, },
+ { NULL, IT8716F_EC, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x07f8, 0x07f8, },
+ { NULL, IT8716F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x07ff, 0x07ff, },
+ { NULL, IT8716F_KBCM, PNP_IRQ0, },
+ { NULL, IT8716F_GPIO, PNP_IO1 | PNP_IO2, 0, 0x07f8, 0x07f8, },
+ { NULL, IT8716F_MIDI, PNP_IO0 | PNP_IRQ0, 0x07fe, },
+ { NULL, IT8716F_GAME, PNP_IO0, 0x07ff, },
+ { NULL, IT8716F_IR, },
};
static void enable_dev(struct device *dev)