aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vnic/thunder_bgx.c
diff options
context:
space:
mode:
authorZbigniew Bodek <zbb@FreeBSD.org>2016-01-28 15:30:58 +0000
committerZbigniew Bodek <zbb@FreeBSD.org>2016-01-28 15:30:58 +0000
commitbe624ad4304b7c4e81919c973dbda14716556fa3 (patch)
tree27b303a6c262e1ba9f44a204c38df0da752d325e /sys/dev/vnic/thunder_bgx.c
parentcdf4ec6873481ce71c4b84e5bdef7f7fa250974d (diff)
downloadsrc-be624ad4304b7c4e81919c973dbda14716556fa3.tar.gz
src-be624ad4304b7c4e81919c973dbda14716556fa3.zip
Fix finding appropriate BGX node in DTB and move it to a separate function
Search for BGX node in DTS in two ways: 1. Try to find it uder root node first 2. If not found under root, find the top level PCI bridge node and search all nodes below it until appropriate BGX node is found. Move search code to another function to make the code more clear. Remove unused variable by the way. Reviewed by: wma Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5066
Notes
Notes: svn path=/head/; revision=294990
Diffstat (limited to 'sys/dev/vnic/thunder_bgx.c')
-rw-r--r--sys/dev/vnic/thunder_bgx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vnic/thunder_bgx.c b/sys/dev/vnic/thunder_bgx.c
index 32d97c871cf6..349475459961 100644
--- a/sys/dev/vnic/thunder_bgx.c
+++ b/sys/dev/vnic/thunder_bgx.c
@@ -68,7 +68,7 @@ __FBSDID("$FreeBSD$");
#define THUNDER_BGX_DEVSTR "ThunderX BGX Ethernet I/O Interface"
-static MALLOC_DEFINE(M_BGX, "thunder_bgx", "ThunderX BGX dynamic memory");
+MALLOC_DEFINE(M_BGX, "thunder_bgx", "ThunderX BGX dynamic memory");
#define BGX_NODE_ID_MASK 0x1
#define BGX_NODE_ID_SHIFT 24