c
static inline struct property *__of_find_property_safe(const struct device_node *np,
                                                       const char *name,
                                                       int *lenp)
{
    return np ? __of_find_property(np, name, lenp) : NULL;
}

struct property *of_find_property(const struct device_node *np,
                                  const char *name,
                                  int *lenp)
{
    struct property *pp;
    unsigned long flags;

    raw_spin_lock_irqsave(&devtree_lock, flags);
    pp = __of_find_property_safe(np, name, lenp);
    // ... rest of the function
}
