r8169 get mac form eeprom
.. | .. |
---|
5296 | 5296 | |
---|
5297 | 5297 | return rc; |
---|
5298 | 5298 | } |
---|
5299 | | -extern ssize_t at24_mac_read(unsigned char* mac); |
---|
| 5299 | +extern ssize_t at24_mac1_read(unsigned char* mac); |
---|
5300 | 5300 | static void rtl_init_mac_address(struct rtl8169_private *tp) |
---|
5301 | 5301 | { |
---|
5302 | 5302 | struct net_device *dev = tp->dev; |
---|
.. | .. |
---|
5317 | 5317 | goto done; |
---|
5318 | 5318 | */ |
---|
5319 | 5319 | memset(mac, 0x00, 6); |
---|
5320 | | - at24_mac_read(mac); |
---|
| 5320 | + at24_mac1_read(mac); |
---|
5321 | 5321 | |
---|
5322 | 5322 | if ((mac[0] == 0x68) && (mac[1] == 0xed)) |
---|
5323 | 5323 | { |
---|
.. | .. |
---|
5345 | 5345 | rtl_rar_set(tp, mac_addr); |
---|
5346 | 5346 | } |
---|
5347 | 5347 | |
---|
5348 | | -extern ssize_t at24_mac1_read(unsigned char* mac); |
---|
5349 | 5348 | static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
---|
5350 | 5349 | { |
---|
5351 | 5350 | struct rtl8169_private *tp; |
---|