diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-07-07 13:04:07 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-07-08 22:10:33 +0000 |
commit | 9511ce7d7feac6afd07d282274d09d3fcf76e8ae (patch) | |
tree | 8fe967e1a2cf283cf6594c5dd96132064a0583a4 /src/southbridge/intel/i82801gx | |
parent | 5f201ef866393f04b55f2c3fed3bedd5eaa9a56e (diff) |
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 <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43174
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/i82801gx')
-rw-r--r-- | src/southbridge/intel/i82801gx/Makefile.inc | 1 | ||||
-rw-r--r-- | src/southbridge/intel/i82801gx/nic.c | 28 |
2 files changed, 0 insertions, 29 deletions
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 <device/device.h> -#include <device/pci.h> -#include <device/pci_ids.h> - -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, -}; |