dts: Remove base_label support

We've removed all references to base_label in dts bindings and are
removing the functionality.  We should depend on DT_ prefixed defines
going forward.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-02-08 09:22:49 -06:00 committed by Kumar Gala
commit c7606609be
2 changed files with 2 additions and 10 deletions

View file

@ -70,8 +70,4 @@ properties:
# "type" attribute is currenty not used.
base_label: LABEL
# This will use 'LABEL' instead of the device generated name when we produce
# #define's for the node
...

View file

@ -177,10 +177,7 @@ def extract_property(node_compat, node_address, prop, prop_val, names):
node = reduced[node_address]
yaml_node_compat = get_binding(node_address)
if 'base_label' in yaml_node_compat:
def_label = yaml_node_compat['base_label']
else:
def_label = get_node_label(node_address)
def_label = get_node_label(node_address)
if 'parent' in yaml_node_compat:
if 'bus' in yaml_node_compat['parent']:
@ -222,8 +219,7 @@ def extract_property(node_compat, node_address, prop, prop_val, names):
# Generate *_BUS_NAME #define
extract_bus_name(node_address, 'DT_' + def_label)
if 'base_label' not in yaml_node_compat:
def_label = 'DT_' + def_label
def_label = 'DT_' + def_label
if prop == 'reg':
reg.extract(node_address, names, def_label, 1)