• Andre Przywara's avatar
    FDT: use static phandles · cd9a8066
    Andre Przywara authored
    
    
    The current implementation of fdt__alloc_phandle() suffers from being
    implemented in a static inline function situated in a header file.
    This will only create expected results within a single compilation
    unit.
    It seems a bit over the top to use a function to allocate phandles,
    when at the end of the day a phandle is just a unique identifier.
    To simplify things - especially with upcoming patches - we just
    introduce an enum per architecture to hold all possible phandle sources
    and use that instead of the dynamic allocation.
    
    Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    cd9a8066