summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/fixup-dts2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fixup-dts b/scripts/fixup-dts
index 278b835..835eeaf 100755
--- a/scripts/fixup-dts
+++ b/scripts/fixup-dts
@@ -129,7 +129,7 @@ if [ `grep -c 'sifive,testram0' ${dts}` -eq 0 ]; then
if [ `grep -c "${protocol}-${port_type}-port" ${dts}` -ne 0 ]; then
# Build the node name
- port_node_name=`egrep -o "${protocol}-${port_type}-port@[a-fA-F0-9]+" ${dts}`
+ port_node_name=`egrep -o "${protocol}-${port_type}-port@[a-fA-F0-9]+" ${dts} | head -n 1`
echo -e "$0: \tUsing node \t${port_node_name}"
# Get the address and size cells