summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/netronome/nfp/nfp_app_nic.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-06-09 06:56:12 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-09 19:52:08 +0300
commit9baa48859bd31f06b9170e86afd92585ff0bbb1f (patch)
treef6c92b3387ebb250ee47578067814b033bfd465d /drivers/net/ethernet/netronome/nfp/nfp_app_nic.c
parentaf4fa7eac770720d5edb9337ab0bccb843936364 (diff)
downloadlinux-9baa48859bd31f06b9170e86afd92585ff0bbb1f.tar.xz
nfp: remove automatic caching of HWInfo
Make callers take care of managing life time of HWInfo. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_app_nic.c')
-rw-r--r--drivers/net/ethernet/netronome/nfp/nfp_app_nic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_app_nic.c b/drivers/net/ethernet/netronome/nfp/nfp_app_nic.c
index 1a33ad9f4170..83c65e6291ee 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_app_nic.c
+++ b/drivers/net/ethernet/netronome/nfp/nfp_app_nic.c
@@ -80,7 +80,7 @@ int nfp_app_nic_vnic_init(struct nfp_app *app, struct nfp_net *nn,
if (err)
return err < 0 ? err : 0;
- nfp_net_get_mac_addr(nn, app->cpp, id);
+ nfp_net_get_mac_addr(app->pf, nn, id);
return 0;
}