• A
    of: provide inline helper for of_find_device_by_node · aa767cfb
    Arnd Bergmann 提交于
    The ipmmu-vmsa driver fails in compile-testing on non-OF platforms:
    
    drivers/iommu/ipmmu-vmsa.o: In function `ipmmu_of_xlate':
    ipmmu-vmsa.c:(.text+0x740): undefined reference to `of_find_device_by_node'
    
    It would be reasonable to assume that this interface works but
    returns failure on non-OF builds, like it does on machines that
    have been booted in another way, so this adds another inline
    function helper.
    
    Fixes: 7b2d5961 ("iommu/ipmmu-vmsa: Replace local utlb code with fwspec ids")
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NRob Herring <robh@kernel.org>
    aa767cfb
of_platform.h 4.1 KB