diff options
-rw-r--r-- | drivers/net/ethernet/dec/tulip/eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dec/tulip/eeprom.c b/drivers/net/ethernet/dec/tulip/eeprom.c index 67a67cb78dbb..d5657ff15e3c 100644 --- a/drivers/net/ethernet/dec/tulip/eeprom.c +++ b/drivers/net/ethernet/dec/tulip/eeprom.c @@ -117,7 +117,7 @@ static void tulip_build_fake_mediatable(struct tulip_private *tp) 0x00, 0x06 /* ttm bit map */ }; - tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) + + tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) + sizeof(struct medialeaf), GFP_KERNEL); if (tp->mtable == NULL) |