From patchwork Tue May 7 04:48:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10932271 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DDF871390 for ; Tue, 7 May 2019 04:48:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEC8B287CD for ; Tue, 7 May 2019 04:48:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC166287D4; Tue, 7 May 2019 04:48:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D70F9287CD for ; Tue, 7 May 2019 04:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=POhV54m/i25cnCR8B0X9nD94kkQqGsjCerst2TDB3Ak=; b=JR5JT44tcBQzf2 AP40fD600rbTs/vZBJxODKyLZB0yBWfZbrTVARHfdJabd+W5/Dx6NDttmcn4gw1mM3YN/kYo9xXS/ FI9lBdVPIkUV7pCqrf0gHJYoHG9gduu83C8DhACZwayblcVAS6BZ7OCTr2DN8UeKGrK5ssP8F8X1x FTdHkV+/BoSv3bzawkamzphdtgy/sCq2JkdHq190AmNAwQA3am0EdFNwKmhb3U1Ckv+OeCGs7T1rY UD6OUMrGASDNyYn9CgLvLfy3K3YLu85G24qTMKHwn6rRl8TFH4OAMW9r05wUX6T/2Qt8nsOHanP9K 8vH7W2riq47zsXMUHNSA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNs1o-00018p-ID; Tue, 07 May 2019 04:48:32 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNs1m-00018T-4v for linux-rockchip@lists.infradead.org; Tue, 07 May 2019 04:48:31 +0000 Received: by mail-pl1-x642.google.com with SMTP id x15so7503995pln.9 for ; Mon, 06 May 2019 21:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bkdv0bUN3uopdZ00bPbwW8foVdMqDPZsqAqI6CV5JHU=; b=hdk78+Yi6w3qCScDwe7QVwVz2ekqRUjtsoEjuwEU7r4V1tbmquogaZCIXdSxM3LyOZ Tn9jnAKT8lIwhOPmUOqT7OO5Xg7NLD2fQp9XRWg2f/JCDvpIZAB/OPAPRlkciycca7IS UzRCgI676utKBb8CLfvuY9n8AXprbI+sFRJGA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bkdv0bUN3uopdZ00bPbwW8foVdMqDPZsqAqI6CV5JHU=; b=SiL/DTs98qVnTVdiKiIXjp/WAByU8LkREUt/LrC+m2ceA7ocI+EvmEYNX/JIYnSV2a 7QYzfyeCRCOnW9L31X+Z4gAedOSdWA0usJxmPTO1SWB31BpvDXqhrDI83oy6MvKUWO1o Zc49dEgig9w2jKfD37FqYHYoUV6NCQa13Smc67tRqxQs6lKxONhLPcHkP/F2ZNgG14Dn abVVRP57/7/SfboZIV5CqTZ412VdHvhTv89WihhaxIsicLZ7rA7J65A9laScRt5eEzqO B44IilzHeSSeTGkcEx0DygXWFubX4zb8hAlW4l+pttqn/X5lYpgljLrjFIFDKF06k3ui PzYw== X-Gm-Message-State: APjAAAXD44u6oLACSGxyCTmtcylhpEGQuy+6g0CUW5Epl6bYc1SqwNue 6EJTtwZDeRdTeTjDneBpLOz0Cg== X-Google-Smtp-Source: APXvYqwWA001dZpEA2DWbP4kSMexNIS+bd1oqMMpvY+KncWs/Pp2prHek40GJdI/BJaWgi2oZzheXw== X-Received: by 2002:a17:902:f302:: with SMTP id gb2mr37496476plb.162.1557204508944; Mon, 06 May 2019 21:48:28 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id n188sm16298641pfn.64.2019.05.06.21.48.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 21:48:28 -0700 (PDT) From: Douglas Anderson To: Rob Herring , Kees Cook Subject: [PATCH] of: Add dummy for of_node_is_root if not CONFIG_OF Date: Mon, 6 May 2019 21:48:01 -0700 Message-Id: <20190507044801.250396-1-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190506_214830_214487_405516C1 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, briannorris@chromium.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, groeck@chromium.org, jwerner@chromium.org, Frank Rowand Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We'll add a dummy to just return false. Signed-off-by: Douglas Anderson Reviewed-by: Guenter Roeck --- include/linux/of.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 0cf857012f11..62ae5c1cafa5 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -653,6 +653,11 @@ static inline bool of_have_populated_dt(void) return false; } +static inline bool of_node_is_root(const struct device_node *node) +{ + return false; +} + static inline struct device_node *of_get_compatible_child(const struct device_node *parent, const char *compatible) {