提交 4429c5fc 编写于 作者: H Heiner Kallweit 提交者: David S. Miller

cxgb4: remove unused vpd_cap_addr

It is likely that this is a leftover from T3 driver heritage. cxgb4 uses
the PCI core VPD access code that handles detection of VPD capabilities.
Reviewed-by: NAlexander Duyck <alexanderduyck@fb.com>
Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8043c845
...@@ -414,7 +414,6 @@ struct pf_resources { ...@@ -414,7 +414,6 @@ struct pf_resources {
}; };
struct pci_params { struct pci_params {
unsigned int vpd_cap_addr;
unsigned char speed; unsigned char speed;
unsigned char width; unsigned char width;
}; };
......
...@@ -3201,8 +3201,6 @@ static void cxgb4_mgmt_fill_vf_station_mac_addr(struct adapter *adap) ...@@ -3201,8 +3201,6 @@ static void cxgb4_mgmt_fill_vf_station_mac_addr(struct adapter *adap)
int err; int err;
u8 *na; u8 *na;
adap->params.pci.vpd_cap_addr = pci_find_capability(adap->pdev,
PCI_CAP_ID_VPD);
err = t4_get_raw_vpd_params(adap, &adap->params.vpd); err = t4_get_raw_vpd_params(adap, &adap->params.vpd);
if (err) if (err)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册