From 9511ce7d7feac6afd07d282274d09d3fcf76e8ae Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Tue, 7 Jul 2020 13:04:07 +0200 Subject: sb/intel/i82801gx: Remove nic.c driver It does nothing special, so why have it in the first place? Change-Id: I27aff0ed67e9c69ab78050d35b49f6e26924d31a Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/43174 Reviewed-by: Arthur Heymans Reviewed-by: Frans Hendriks Reviewed-by: Christian Walter Tested-by: build bot (Jenkins) --- src/southbridge/intel/i82801gx/Makefile.inc | 1 - src/southbridge/intel/i82801gx/nic.c | 28 ---------------------------- 2 files changed, 29 deletions(-) delete mode 100644 src/southbridge/intel/i82801gx/nic.c diff --git a/src/southbridge/intel/i82801gx/Makefile.inc b/src/southbridge/intel/i82801gx/Makefile.inc index 3e48fffa6d..1630f939d2 100644 --- a/src/southbridge/intel/i82801gx/Makefile.inc +++ b/src/southbridge/intel/i82801gx/Makefile.inc @@ -11,7 +11,6 @@ ramstage-y += ac97.c ramstage-y += azalia.c ramstage-y += ide.c ramstage-y += lpc.c -ramstage-y += nic.c ramstage-y += pci.c ramstage-y += pcie.c ramstage-y += sata.c diff --git a/src/southbridge/intel/i82801gx/nic.c b/src/southbridge/intel/i82801gx/nic.c deleted file mode 100644 index b9dcd31bf7..0000000000 --- a/src/southbridge/intel/i82801gx/nic.c +++ /dev/null @@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -/* This code should work for all ICH* southbridges with a NIC. */ - -#include -#include -#include - -static void nic_init(struct device *dev) -{ - /* Nothing yet */ -} - -static struct device_operations nic_ops = { - .read_resources = pci_dev_read_resources, - .set_resources = pci_dev_set_resources, - .enable_resources = pci_dev_enable_resources, - .init = nic_init, -}; - -/* 82801GB/GR/GDH/GBM/GHM (ICH7/ICH7R/ICH7DH/ICH7-M/ICH7-M DH) */ -/* Note: 82801GU (ICH7-U) doesn't have a NIC. */ -/* PCI ID loaded from EEPROM. If EEPROM is 0, 0x27dc is used. */ -static const struct pci_driver i82801gx_nic __pci_driver = { - .ops = &nic_ops, - .vendor = PCI_VENDOR_ID_INTEL, - .device = 0x27dc, -}; -- cgit v1.2.3