Skip to content
Commit 299bfd05 authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

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: default avatarKumar Gala <kumar.gala@linaro.org>
parent 9d15e986
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment