nfp: turn reading PCIe RTsym parameters into a helper
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 31 May 2017 15:06:45 +0000 (08:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 21:58:13 +0000 (17:58 -0400)
commit69394af5de15493fa7bb42ed123d51e713a88b3c
tree60dd11a4f49bdb3ff05c8f7876f36ce6c6b11916
parent5c9143598ea1a5f7a92761966f0c65a459eef7b4
nfp: turn reading PCIe RTsym parameters into a helper

Turn the function to read number of ports into a generic helper.
While at it make sure we propagate all errors other than -ENOENT.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_main.c