igb: make dev_spec a union and remove dynamic allocation

This patch makes dev_spec a union and simplifies it so that it does not
require dynamic allocation and freeing in the driver.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Este commit está contenido en:
Alexander Duyck
2009-02-06 23:16:45 +00:00
cometido por David S. Miller
padre 4d6b725e4d
commit c1889bfe68
Se han modificado 5 ficheros con 12 adiciones y 47 borrados

Ver fichero

@@ -37,19 +37,6 @@
static s32 igb_set_default_fc(struct e1000_hw *hw);
static s32 igb_set_fc_watermarks(struct e1000_hw *hw);
/**
* igb_remove_device - Free device specific structure
* @hw: pointer to the HW structure
*
* If a device specific structure was allocated, this function will
* free it.
**/
void igb_remove_device(struct e1000_hw *hw)
{
/* Freeing the dev_spec member of e1000_hw structure */
kfree(hw->dev_spec);
}
static s32 igb_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
{
struct igb_adapter *adapter = hw->back;