Fix card_idx calculation, thanks sn9

SVN-Revision: 12294
This commit is contained in:
Florian Fainelli 2008-08-13 15:08:34 +00:00
parent 02780ec100
commit f2340f4b92

View file

@ -1326,7 +1326,7 @@ int __devinit r6040_init_one(struct pci_dev *pdev,
dev->name); dev->name);
memcpy(dev->dev_addr, dflt_addr, ETH_ALEN); memcpy(dev->dev_addr, dflt_addr, ETH_ALEN);
} }
dev->dev_addr[ETH_ALEN-1] += card_idx; /* + 0 or 1 */ dev->dev_addr[ETH_ALEN-1] += card_idx ^ 1; /* + 0 or 1 */
} }
#ifdef CONFIG_NET_POLL_CONTROLLER #ifdef CONFIG_NET_POLL_CONTROLLER