summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmdk-stage1/usb-resource/update-usb-ids.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdk-stage1/usb-resource/update-usb-ids.pl b/mdk-stage1/usb-resource/update-usb-ids.pl
index 187c7f5c0..ae934c1b5 100755
--- a/mdk-stage1/usb-resource/update-usb-ids.pl
+++ b/mdk-stage1/usb-resource/update-usb-ids.pl
@@ -23,7 +23,8 @@ print "struct pci_module_map usb_pci_ids[] = {
";
-while (my ($k, $v) = each %$pci) {
+foreach my $k (sort keys %$pci) {
+ my $v = $pci->{$k};
$v->[0] =~ /^usb-|^ehci-hcd|^ohci1394/ or next;
$k =~ /^(....)(....)/;
printf qq|\t{ 0x%s, 0x%s, "", "%s" },\n|,