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:
parent
c3eafb9c90
commit
c7606609be
2 changed files with 2 additions and 10 deletions
|
@ -70,8 +70,4 @@ properties:
|
||||||
|
|
||||||
# "type" attribute is currenty not used.
|
# "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
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -177,10 +177,7 @@ def extract_property(node_compat, node_address, prop, prop_val, names):
|
||||||
|
|
||||||
node = reduced[node_address]
|
node = reduced[node_address]
|
||||||
yaml_node_compat = get_binding(node_address)
|
yaml_node_compat = get_binding(node_address)
|
||||||
if 'base_label' in yaml_node_compat:
|
def_label = get_node_label(node_address)
|
||||||
def_label = yaml_node_compat['base_label']
|
|
||||||
else:
|
|
||||||
def_label = get_node_label(node_address)
|
|
||||||
|
|
||||||
if 'parent' in yaml_node_compat:
|
if 'parent' in yaml_node_compat:
|
||||||
if 'bus' in yaml_node_compat['parent']:
|
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
|
# Generate *_BUS_NAME #define
|
||||||
extract_bus_name(node_address, 'DT_' + def_label)
|
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':
|
if prop == 'reg':
|
||||||
reg.extract(node_address, names, def_label, 1)
|
reg.extract(node_address, names, def_label, 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue