From 9911d64b9edb8c055b37b0635e97b4c585aa4ae1 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 6 Jul 2018 20:55:53 +0200 Subject: superio/nuvoton: remove LDN-specific ops overrides The pnp ops struct is already passed to the pnp_enable_devices function and it is used if no override is supplied in the elements of the pnp_info struct array Change-Id: I18345d7cc50a7d46cb15584dfb54df28e8534f81 Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/27386 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Rudolph --- src/superio/nuvoton/nct6776/superio.c | 54 +++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'src/superio/nuvoton/nct6776') diff --git a/src/superio/nuvoton/nct6776/superio.c b/src/superio/nuvoton/nct6776/superio.c index 1512d568fb..033f64666d 100644 --- a/src/superio/nuvoton/nct6776/superio.c +++ b/src/superio/nuvoton/nct6776/superio.c @@ -50,42 +50,42 @@ static struct device_operations ops = { }; static struct pnp_info pnp_dev_info[] = { - { &ops, NCT6776_FDC, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, + { NULL, NCT6776_FDC, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x0ff8, }, - { &ops, NCT6776_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, + { NULL, NCT6776_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x0ff8, }, - { &ops, NCT6776_SP1, PNP_IO0 | PNP_IRQ0, + { NULL, NCT6776_SP1, PNP_IO0 | PNP_IRQ0, 0x0ff8, }, - { &ops, NCT6776_SP2, PNP_IO0 | PNP_IRQ0, + { NULL, NCT6776_SP2, PNP_IO0 | PNP_IRQ0, 0x0ff8, }, - { &ops, NCT6776_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, + { NULL, NCT6776_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, 0x0fff, 0x0fff, }, - { &ops, NCT6776_CIR, PNP_IO0 | PNP_IRQ0, + { NULL, NCT6776_CIR, PNP_IO0 | PNP_IRQ0, 0x0ff8, }, - { &ops, NCT6776_ACPI}, - { &ops, NCT6776_HWM_FPLED, PNP_IO0 | PNP_IO1 | PNP_IRQ0, + { NULL, NCT6776_ACPI}, + { NULL, NCT6776_HWM_FPLED, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x0ffe, 0x0ffe, }, - { &ops, NCT6776_VID}, - { &ops, NCT6776_CIRWKUP, PNP_IO0 | PNP_IRQ0, + { NULL, NCT6776_VID}, + { NULL, NCT6776_CIRWKUP, PNP_IO0 | PNP_IRQ0, 0x0ff8, }, - { &ops, NCT6776_GPIO_PP_OD}, - { &ops, NCT6776_SVID}, - { &ops, NCT6776_DSLP}, - { &ops, NCT6776_GPIOA_LDN}, - { &ops, NCT6776_WDT1}, - { &ops, NCT6776_GPIOBASE, PNP_IO0, + { NULL, NCT6776_GPIO_PP_OD}, + { NULL, NCT6776_SVID}, + { NULL, NCT6776_DSLP}, + { NULL, NCT6776_GPIOA_LDN}, + { NULL, NCT6776_WDT1}, + { NULL, NCT6776_GPIOBASE, PNP_IO0, 0x0ff8, }, - { &ops, NCT6776_GPIO0}, - { &ops, NCT6776_GPIO1}, - { &ops, NCT6776_GPIO2}, - { &ops, NCT6776_GPIO3}, - { &ops, NCT6776_GPIO4}, - { &ops, NCT6776_GPIO5}, - { &ops, NCT6776_GPIO6}, - { &ops, NCT6776_GPIO7}, - { &ops, NCT6776_GPIO8}, - { &ops, NCT6776_GPIO9}, - { &ops, NCT6776_GPIOA}, + { NULL, NCT6776_GPIO0}, + { NULL, NCT6776_GPIO1}, + { NULL, NCT6776_GPIO2}, + { NULL, NCT6776_GPIO3}, + { NULL, NCT6776_GPIO4}, + { NULL, NCT6776_GPIO5}, + { NULL, NCT6776_GPIO6}, + { NULL, NCT6776_GPIO7}, + { NULL, NCT6776_GPIO8}, + { NULL, NCT6776_GPIO9}, + { NULL, NCT6776_GPIOA}, }; static void enable_dev(struct device *dev) -- cgit v1.2.3