/* If e1000_update_eeprom_checksum is not called after this function, the EEPROM will most likely contain an invalid checksum.  */
s32 e1000_write_eeprom(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
/* If e1000_update_eeprom_checksum is not called after this function, the EEPROM will most likely contain an invalid checksum.  */
s32 e1000_write_eeprom(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
{
	s32 ret;
	spin_lock(&e1000_eeprom_lock);
	ret = e1000_do_write_eeprom(hw, offset, words, data);
	spin_unlock(&e1000_eeprom_lock);
	return ret;
}