aboutsummaryrefslogtreecommitdiff
path: root/sys/mips
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2017-05-23 06:20:24 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2017-05-23 06:20:24 +0000
commit7a0466bc2b52d6c6bd87025fcf531631f40362a7 (patch)
tree928f9cf8ddd36205dccfa86d0d5bf6855b6263e0 /sys/mips
parent57b8f9ca1d8db4b8bbcce15d03c8c2c26bfe5e35 (diff)
downloadsrc-7a0466bc2b52d6c6bd87025fcf531631f40362a7.tar.gz
src-7a0466bc2b52d6c6bd87025fcf531631f40362a7.zip
[ar71xx] remove dead code!
Notes
Notes: svn path=/head/; revision=318697
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/atheros/ar71xx_fixup.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/sys/mips/atheros/ar71xx_fixup.c b/sys/mips/atheros/ar71xx_fixup.c
index 27747bdb4892..66a9f59c3aa7 100644
--- a/sys/mips/atheros/ar71xx_fixup.c
+++ b/sys/mips/atheros/ar71xx_fixup.c
@@ -110,43 +110,3 @@ ar71xx_pci_slot_create_eeprom_firmware(device_t dev, u_int bus, u_int slot,
}
device_printf(dev, "device EEPROM '%s' registered\n", buf);
}
-
-#if 0
-static void
-ar71xx_pci_slot_fixup(device_t dev, u_int bus, u_int slot, u_int func)
-{
- long int flash_addr;
- char buf[64];
- int size;
-
- /*
- * Check whether the given slot has a hint to poke.
- */
- if (bootverbose)
- device_printf(dev, "%s: checking dev %s, %d/%d/%d\n",
- __func__, device_get_nameunit(dev), bus, slot, func);
-
- snprintf(buf, sizeof(buf), "bus.%d.%d.%d.ath_fixup_addr",
- bus, slot, func);
-
- if (resource_long_value(device_get_name(dev), device_get_unit(dev),
- buf, &flash_addr) == 0) {
- snprintf(buf, sizeof(buf), "bus.%d.%d.%d.ath_fixup_size",
- bus, slot, func);
- if (resource_int_value(device_get_name(dev),
- device_get_unit(dev), buf, &size) != 0) {
- device_printf(dev,
- "%s: missing hint '%s', aborting EEPROM\n",
- __func__, buf);
- return;
- }
-
-
- device_printf(dev, "found EEPROM at 0x%lx on %d.%d.%d\n",
- flash_addr, bus, slot, func);
- ar71xx_pci_fixup(dev, bus, slot, func, flash_addr, size);
- ar71xx_pci_slot_create_eeprom_firmware(dev, bus, slot, func,
- flash_addr, size);
- }
-}
-#endif /* 0 */