diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-18 21:04:37 +0200 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-20 15:49:00 -0500 |
| commit | f240e15097c5004811a58f2cbc170bf90d06d0a9 (patch) | |
| tree | aeb9fe27612afcd7cc184ea7df6c15c55aa8eb26 /drivers/net/ethernet/broadcom/bcm63xx_enet.c | |
| parent | 37838aa437c78fefd7d818f5f01a3a3950e92f40 (diff) | |
tg3: Read VPD with pci_vpd_alloc()
Use pci_vpd_alloc() to dynamically allocate a properly sized buffer and
read the full VPD data into it.
This simplifies the code, and we no longer have to make assumptions about
VPD size.
Link: https://lore.kernel.org/r/bd3cd19c-b74f-9704-5786-476bf35ab5de@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcm63xx_enet.c')
0 files changed, 0 insertions, 0 deletions
