From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752691Ab1JJQVP (ORCPT ); Mon, 10 Oct 2011 12:21:15 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:43108 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751310Ab1JJQVM (ORCPT ); Mon, 10 Oct 2011 12:21:12 -0400 From: Rajendra Nayak To: , CC: , , , , , , , , Rajendra Nayak Subject: [PATCH v2 2/5] dt: add empty dt helpers for non-dt build Date: Mon, 10 Oct 2011 21:49:35 +0530 Message-ID: <1318263578-7407-3-git-send-email-rnayak@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1318263578-7407-1-git-send-email-rnayak@ti.com> References: <1318263578-7407-1-git-send-email-rnayak@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add empty of_device_is_compatible(), of_find_property() and of_parse_phandle() for non-dt builds to work. Signed-off-by: Rajendra Nayak --- include/linux/of.h | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index 9180dc5..47ce461 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -263,6 +263,25 @@ static inline const void *of_get_property(const struct device_node *node, return NULL; } +static inline int of_device_is_compatible(const struct device_node *device, + const char *name) +{ + return 0; +} + +static inline struct property *of_find_property(const struct device_node *np, + const char *name, + int *lenp) +{ + return NULL; +} + +static inline struct device_node *of_parse_phandle(struct device_node *np, + const char *phandle_name, + int index) +{ + return NULL; +} #endif /* CONFIG_OF */ static inline int of_property_read_u32(const struct device_node *np, -- 1.7.1