|
@@ -818,8 +818,8 @@ e1000_probe ( struct pci_device *pdev,
|
818
|
818
|
* because it depends on mac_type
|
819
|
819
|
*/
|
820
|
820
|
if ( ( adapter->hw.mac_type == e1000_ich8lan ) && ( pdev->ioaddr ) ) {
|
821
|
|
- flash_start = pci_bar_start ( pdev, 1 );
|
822
|
|
- flash_len = pci_bar_size ( pdev, 1 );
|
|
821
|
+ flash_start = pci_bar_start ( pdev, PCI_BASE_ADDRESS_1 );
|
|
822
|
+ flash_len = pci_bar_size ( pdev, PCI_BASE_ADDRESS_1 );
|
823
|
823
|
adapter->hw.flash_address = ioremap ( flash_start, flash_len );
|
824
|
824
|
if ( ! adapter->hw.flash_address )
|
825
|
825
|
goto err_flashmap;
|