Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933311AbbFQXeC (ORCPT ); Wed, 17 Jun 2015 19:34:02 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:33859 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754782AbbFQXdu (ORCPT ); Wed, 17 Jun 2015 19:33:50 -0400 MIME-Version: 1.0 In-Reply-To: <1434560033-26681-1-git-send-email-s-anna@ti.com> References: <1434560033-26681-1-git-send-email-s-anna@ti.com> From: Rob Herring Date: Wed, 17 Jun 2015 18:33:29 -0500 Message-ID: Subject: Re: [PATCH] of: define of_find_node_by_phandle for !CONFIG_OF To: Suman Anna Cc: Grant Likely , Rob Herring , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ohad Ben-Cohen Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1206 Lines: 39 On Wed, Jun 17, 2015 at 11:53 AM, Suman Anna wrote: > Define stub implementation for of_find_node_by_phandle() API > so that users of this API can build properly even when CONFIG_OF > is not defined. > > Signed-off-by: Suman Anna Do you have a user for this? If not, apply it when you do. Acked-by: Rob Herring > --- > include/linux/of.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/of.h b/include/linux/of.h > index ddeaae6d2083..90dfdc47ae26 100644 > --- a/include/linux/of.h > +++ b/include/linux/of.h > @@ -422,6 +422,11 @@ static inline struct device_node *of_find_node_opts_by_path(const char *path, > return NULL; > } > > +static inline struct device_node *of_find_node_by_phandle(phandle handle) > +{ > + return NULL; > +} > + > static inline struct device_node *of_get_parent(const struct device_node *node) > { > return NULL; > -- > 2.4.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/