]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
e1000: remove unused part_num reading code
authorAuke Kok <auke\\\-jan.h.kok@intel.com>
Mon, 28 Aug 2006 21:56:30 +0000 (14:56 -0700)
committerAuke Kok <juke-jan.h.kok@intel.com>
Mon, 28 Aug 2006 21:56:30 +0000 (14:56 -0700)
Remove the code that reads part_num from the EEPROM. This part number
is never displayed or queryable by the user.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
drivers/net/e1000/e1000.h
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_main.c

index c1107815f22c0558bb65ff04a2c8d25d7ec4a097..70ba3783ad80e8d55352a5ee7b68f3f0976cda39 100644 (file)
@@ -245,7 +245,6 @@ struct e1000_adapter {
        uint16_t mng_vlan_id;
        uint32_t bd_number;
        uint32_t rx_buffer_len;
-       uint32_t part_num;
        uint32_t wol;
        uint32_t ksp3_port_a;
        uint32_t smartspeed;
index 57749eb438e476824457229b845eaab91badb734..f56d4cd6701d1c2db8fa72903d30e5e9a6799202 100644 (file)
@@ -5555,40 +5555,6 @@ e1000_commit_shadow_ram(struct e1000_hw *hw)
     return error;
 }
 
-/******************************************************************************
- * Reads the adapter's part number from the EEPROM
- *
- * hw - Struct containing variables accessed by shared code
- * part_num - Adapter's part number
- *****************************************************************************/
-int32_t
-e1000_read_part_num(struct e1000_hw *hw,
-                    uint32_t *part_num)
-{
-    uint16_t offset = EEPROM_PBA_BYTE_1;
-    uint16_t eeprom_data;
-
-    DEBUGFUNC("e1000_read_part_num");
-
-    /* Get word 0 from EEPROM */
-    if (e1000_read_eeprom(hw, offset, 1, &eeprom_data) < 0) {
-        DEBUGOUT("EEPROM Read Error\n");
-        return -E1000_ERR_EEPROM;
-    }
-    /* Save word 0 in upper half of part_num */
-    *part_num = (uint32_t) (eeprom_data << 16);
-
-    /* Get word 1 from EEPROM */
-    if (e1000_read_eeprom(hw, ++offset, 1, &eeprom_data) < 0) {
-        DEBUGOUT("EEPROM Read Error\n");
-        return -E1000_ERR_EEPROM;
-    }
-    /* Save word 1 in lower half of part_num */
-    *part_num |= eeprom_data;
-
-    return E1000_SUCCESS;
-}
-
 /******************************************************************************
  * Reads the adapter's MAC address from the EEPROM and inverts the LSB for the
  * second function of dual function devices
index 630fe605e5c4b5e5906898ebc438cecf9aa7cf5d..c128f62fa45ef0940b68b9ddc06cc11cf18c86c3 100644 (file)
@@ -853,8 +853,6 @@ e1000_probe(struct pci_dev *pdev,
                goto err_eeprom;
        }
 
-       e1000_read_part_num(&adapter->hw, &(adapter->part_num));
-
        e1000_get_bus_info(&adapter->hw);
 
        init_timer(&adapter->tx_fifo_stall_timer);