From patchwork Mon Nov 15 01:20:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12618511 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32715C433EF for ; Mon, 15 Nov 2021 01:21:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 112C961185 for ; Mon, 15 Nov 2021 01:21:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235038AbhKOBXx (ORCPT ); Sun, 14 Nov 2021 20:23:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234982AbhKOBXw (ORCPT ); Sun, 14 Nov 2021 20:23:52 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96917C061746; Sun, 14 Nov 2021 17:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=xm2WaH1Ez4XZ9JuC8AhOwXIWdLRqdsdWoim4LFk92IY=; b=CBzkm4D3LOv1D4Xa4/t05C3Epc WB+wiGwxycYMzEJnNjlMOC15q0pfbZOLvPl06KOF2W9uQn8eI93FRTxERu0rHWllidrdQmaNc4KUV VTyJS8UJJ4WpDMShxvu2pNn4Y3ET7A1pAYvBUR7QDQ/8n6iVTFMxzHQzrGkwNJDnVa2Xfh2p+XwAu nsg+PHoIhbUUU9skqfoUxV1xyGjl/gnrsNFQNkwsLT/BKq7ie1JOFmpfMLKBFVN/5qNc53Mp8UTRm k5B9tS8hx6U3UoKwQtxHaikZcGjuv6WEJReehWSXEqN8WkPl4aLkuAQmuQtTHFKWIlgL5GH+acC37 WZB8Bzpw==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmQg0-00ECsh-Ks; Mon, 15 Nov 2021 01:20:52 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Russell King , linux-mips@vger.kernel.org, John Crispin , Thomas Bogendoerfer , Jonathan Cameron , linux-iio@vger.kernel.org, Russell King , Andy Shevchenko Subject: [PATCH] mips: lantiq: add support for clk_get_parent() Date: Sun, 14 Nov 2021 17:20:51 -0800 Message-Id: <20211115012051.16302-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Provide a simple implementation of clk_get_parent() in the lantiq subarch so that callers of it will build without errors. Fixes this build error: ERROR: modpost: "clk_get_parent" [drivers/iio/adc/ingenic-adc.ko] undefined! Fixes: 171bb2f19ed6 ("MIPS: Lantiq: Add initial support for Lantiq SoCs") Signed-off-by: Randy Dunlap Suggested-by: Russell King (Oracle) Cc: linux-mips@vger.kernel.org Cc: John Crispin Cc: Thomas Bogendoerfer Cc: Jonathan Cameron Cc: linux-iio@vger.kernel.org Cc: Russell King Cc: Andy Shevchenko Acked-by: Jonathan Cameron Acked-by: John Crispin --- arch/mips/lantiq/clk.c | 6 ++++++ 1 file changed, 6 insertions(+) --- linux-next-20211112.orig/arch/mips/lantiq/clk.c +++ linux-next-20211112/arch/mips/lantiq/clk.c @@ -158,6 +158,12 @@ void clk_deactivate(struct clk *clk) } EXPORT_SYMBOL(clk_deactivate); +struct clk *clk_get_parent(struct clk *clk) +{ + return NULL; +} +EXPORT_SYMBOL(clk_get_parent); + static inline u32 get_counter_resolution(void) { u32 res;