aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/net/b44.c
diff options
context:
space:
mode:
authorGeert Stappers <stappers@stappers.it>2024-02-18 12:29:59 +0100
committerMichael Brown <mcb30@ipxe.org>2024-02-22 14:19:04 +0000
commite5f3ba0ca773e8ea4dcfec6e10f18a06d14e79e0 (patch)
treecd7bd2ded78e923a71bbcf1f43f9d60bb6861504 /src/drivers/net/b44.c
parent582132fe3f72377f592aa127d920355afa887384 (diff)
downloadipxe-e5f3ba0ca773e8ea4dcfec6e10f18a06d14e79e0.zip
ipxe-e5f3ba0ca773e8ea4dcfec6e10f18a06d14e79e0.tar.gz
ipxe-e5f3ba0ca773e8ea4dcfec6e10f18a06d14e79e0.tar.bz2
[drivers] Sort PCI_ROM() entries numerically
Done with the help of this Perl script: $MARKER = 'PCI_ROM'; # a regex $AB = 1; # At Begin @HEAD = (); @ITEMS = (); @TAIL = (); foreach $fn (@ARGV) { open(IN, $fn) or die "Can't open file '$fn': $!\n"; while (<IN>) { if (/$MARKER/) { push @ITEMS, $_; $AB = 0; # not anymore at begin } else { if ($AB) { push @HEAD, $_; } else { push @TAIL, $_; } } } } continue { close IN; open(OUT, ">$fn") or die "Can't open file '$fn' for output: $!\n"; print OUT @HEAD; print OUT sort @ITEMS; print OUT @TAIL; close OUT; # For a next file $AB = 1; @HEAD = (); @ITEMS = (); @TAIL = (); } Executed that script while src/drivers/ as current working directory, provided '$(grep -rl PCI_ROM)' as argument. Signed-off-by: Geert Stappers <stappers@stappers.it>
Diffstat (limited to 'src/drivers/net/b44.c')
-rw-r--r--src/drivers/net/b44.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/b44.c b/src/drivers/net/b44.c
index 1ca7e2e..30ece55 100644
--- a/src/drivers/net/b44.c
+++ b/src/drivers/net/b44.c
@@ -945,8 +945,8 @@ static struct net_device_operations b44_operations = {
static struct pci_device_id b44_nics[] = {
- PCI_ROM(0x14e4, 0x4401, "BCM4401", "BCM4401", 0),
PCI_ROM(0x14e4, 0x170c, "BCM4401-B0", "BCM4401-B0", 0),
+ PCI_ROM(0x14e4, 0x4401, "BCM4401", "BCM4401", 0),
PCI_ROM(0x14e4, 0x4402, "BCM4401-B1", "BCM4401-B1", 0),
};