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 5E2F4C433FE for ; Tue, 16 Nov 2021 01:25:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 448BF61BFA for ; Tue, 16 Nov 2021 01:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351948AbhKPB16 (ORCPT ); Mon, 15 Nov 2021 20:27:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243864AbhKOTIK (ORCPT ); Mon, 15 Nov 2021 14:08:10 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD438C06EDE1; Mon, 15 Nov 2021 09:58:21 -0800 (PST) Received: from [2a04:4540:1401:b700:606b:3eee:8c1b:a587] by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mmgF6-0005a6-Ay; Mon, 15 Nov 2021 18:58:08 +0100 Message-ID: <4342c4de-b516-8992-a3f3-4eea7ff4de40@phrozen.org> Date: Mon, 15 Nov 2021 18:58:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH] mips: lantiq: add support for clk_get_parent() Content-Language: en-GB To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Russell King , linux-mips@vger.kernel.org, Thomas Bogendoerfer , Jonathan Cameron , linux-iio@vger.kernel.org, Russell King , Andy Shevchenko References: <20211115012051.16302-1-rdunlap@infradead.org> From: John Crispin In-Reply-To: <20211115012051.16302-1-rdunlap@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.11.21 02:20, Randy Dunlap wrote: > 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: John Crispin // we added the same fix for mips/ralink a while back > --- > 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; >