From patchwork Tue Apr 25 17:28:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9698845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4883E6020A for ; Tue, 25 Apr 2017 17:29:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3570B2866A for ; Tue, 25 Apr 2017 17:29:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 284F528681; Tue, 25 Apr 2017 17:29:05 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEE5E2866A for ; Tue, 25 Apr 2017 17:29:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S945453AbdDYR26 (ORCPT ); Tue, 25 Apr 2017 13:28:58 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:57680 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1952130AbdDYR25 (ORCPT ); Tue, 25 Apr 2017 13:28:57 -0400 Received: from ayla.of.borg ([84.193.137.253]) by albert.telenet-ops.be with bizsmtp id ChUq1v00S5UCtCs06hUqPu; Tue, 25 Apr 2017 19:28:51 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1d34Gg-0008Ux-Dc; Tue, 25 Apr 2017 19:28:50 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1d34Gg-0007LZ-CY; Tue, 25 Apr 2017 19:28:50 +0200 From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd , Russell King , Rob Herring , Mark Rutland Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] clk: Provide dummy of_clk_get_from_provider() for compile-testing Date: Tue, 25 Apr 2017 19:28:48 +0200 Message-Id: <1493141328-28201-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_ON=n, dummies are provided for of_clk_get() and of_clk_get_by_name(), but not for of_clk_get_from_provider(). Provide a dummy for the latter, to improve the ability to do compile-testing. Fixes: 766e6a4ec602d0c1 ("clk: add DT clock binding support") Signed-off-by: Geert Uytterhoeven --- include/linux/clk.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/clk.h b/include/linux/clk.h index e9d36b3e49de5b1b..3ed97abb5cbb7f94 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -539,6 +539,10 @@ static inline struct clk *of_clk_get_by_name(struct device_node *np, { return ERR_PTR(-ENOENT); } +static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec) +{ + return ERR_PTR(-ENOENT); +} #endif #endif