Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753413AbcD0LLq (ORCPT ); Wed, 27 Apr 2016 07:11:46 -0400 Received: from mga01.intel.com ([192.55.52.88]:53651 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbcD0LLp (ORCPT ); Wed, 27 Apr 2016 07:11:45 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,541,1455004800"; d="scan'208";a="793408743" From: Heikki Krogerus To: Kishon Vijay Abraham I , Grant Likely Cc: Thierry Reding , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Rowand , Rob Herring Subject: [PATCH] of: Add stub for of_get_next_parent() Date: Wed, 27 Apr 2016 14:11:40 +0300 Message-Id: <1461755500-889-1-git-send-email-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.8.0.rc3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 33 Fixes a compiler error: drivers/phy/phy-core.c: In function ‘__of_phy_provider_register’: drivers/phy/phy-core.c:848:13: error: implicit declaration of function ‘of_get_next_parent’ [-Werror=implicit-function-declaration] parent = of_get_next_parent(parent); ^ Fixes: 2f7600bc981c ("phy: core: Allow children node to be overridden") Signed-off-by: Heikki Krogerus --- include/linux/of.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index c7292e8..00ab231 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -468,6 +468,12 @@ static inline struct device_node *of_get_parent(const struct device_node *node) return NULL; } +static inline struct device_node *of_get_next_parent( + const struct device_node *node) +{ + return NULL; +} + static inline struct device_node *of_get_next_child( const struct device_node *node, struct device_node *prev) { -- 2.8.0.rc3