Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'upstream-jeff' of git://git.kernel.org/pub/scm/linux/kernel/git/romieu/netdev-2.6 into upstream

authored by

Jeff Garzik and committed by
Jeff Garzik
dd32f7ef 090bf621

+4 -4
+4 -4
drivers/net/r8169.c
··· 1617 1617 SET_NETDEV_DEV(dev, &pdev->dev); 1618 1618 tp = netdev_priv(dev); 1619 1619 tp->dev = dev; 1620 + tp->pci_dev = pdev; 1620 1621 tp->msg_enable = netif_msg_init(debug.msg_enable, R8169_MSG_DEFAULT); 1621 1622 1622 1623 /* enable device (incl. PCI PM wakeup and hotplug setup) */ ··· 1706 1705 1707 1706 rtl8169_print_mac_version(tp); 1708 1707 1709 - for (i = ARRAY_SIZE(rtl_chip_info) - 1; i >= 0; i--) { 1708 + for (i = 0; i < ARRAY_SIZE(rtl_chip_info); i++) { 1710 1709 if (tp->mac_version == rtl_chip_info[i].mac_version) 1711 1710 break; 1712 1711 } 1713 - if (i < 0) { 1712 + if (i == ARRAY_SIZE(rtl_chip_info)) { 1714 1713 /* Unknown chip: assume array element #0, original RTL-8169 */ 1715 1714 if (netif_msg_probe(tp)) { 1716 1715 dev_printk(KERN_DEBUG, &pdev->dev, 1717 1716 "unknown chip version, assuming %s\n", 1718 1717 rtl_chip_info[0].name); 1719 1718 } 1720 - i++; 1719 + i = 0; 1721 1720 } 1722 1721 tp->chipset = i; 1723 1722 ··· 1778 1777 #endif 1779 1778 1780 1779 tp->intr_mask = 0xffff; 1781 - tp->pci_dev = pdev; 1782 1780 tp->mmio_addr = ioaddr; 1783 1781 tp->align = cfg->align; 1784 1782 tp->hw_start = cfg->hw_start;