Message ID | 1456492692-21592-2-git-send-email-alexanders83@web.de |
---|---|
State | New |
Headers | show |
On Fri, Feb 26, 2016 at 8:17 PM, Alexander Stein <alexanders83@web.de> wrote: > Introduce empty of_read_number when CONFIG_OF is not defined. This allows > us to compile test gpio drivers. > > Signed-off-by: Alexander Stein <alexanders83@web.de> I need to wait for the OF maintainer to merge this or provide an ACK before I proceed with this patch series. It's pretty late so let's consider this v4.7 material at this point. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/linux/of.h b/include/linux/of.h index dc6e39696b64..bea9e092979d 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -672,6 +672,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag { } +static inline u64 of_read_number(const __be32 *cell, int size) +{ + return 0; +} + #define of_match_ptr(_ptr) NULL #define of_match_node(_matches, _node) NULL #endif /* CONFIG_OF */
Introduce empty of_read_number when CONFIG_OF is not defined. This allows us to compile test gpio drivers. Signed-off-by: Alexander Stein <alexanders83@web.de> --- include/linux/of.h | 5 +++++ 1 file changed, 5 insertions(+)