scripts: dts: gen_defines: Fix issue if there are no compats
We get the following error:
ValueError: max() arg is an empty sequence
if the compatiable section of the device tree is empty or doesn't exist.
Fix this by havingin max_len get a default value of 0.
Signed-off-by:
Kumar Gala <kumar.gala@linaro.org>
Loading
Please sign in to comment