Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3635479pxb; Mon, 24 Jan 2022 14:04:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJypSq5YBKGezlvNzevMwkyyIIKVQjtt45xbfczCVOgdhBsbu66qyGi0P9XMFQdKFf+MYeM1 X-Received: by 2002:a65:6410:: with SMTP id a16mr11175157pgv.5.1643061862482; Mon, 24 Jan 2022 14:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061862; cv=none; d=google.com; s=arc-20160816; b=QFOhdpCrMVVNDKm8JlMZkEkQhWvmnFCybh0z0b/kLlR8MB3sp5IAwJazrQnutPE3nk XBCj/qFHuYZ1wPEgb300Zb5itfO8VEYInutaijamONHfQOi2pW5HmDNSH47K62xYaJJj 3NyZP5Qx0p0T4jlIaosR1RrShQrnYpB0dkWJAtg3EK+o79a5GiJl1gNzoKogv8O4sUp/ LQ2ebWG3q8ardJ60lX0AOA3+2+teDikBJ1cDheRiep5qTF8JcRmH70KiSdtRe5abGRg/ Cx3GoX/fqyxsaZhbWrzq3BHzGVH8RKfDKrtkDIyPqY7L0HGRpCsgqdc3QGogJYy0o0wB 52hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jmjul0eo38IH83LwKdIGfc7fg+U4QRJcvXaOjKqNxp0=; b=YVud5OMqk4EnYs24Q4wLqAdZj3Ow+wqKT5wYeZv6pCW6xAzhDbz5c273fAYgI8yPAM kAka1P/miujQhD6eBAYpm+/PfwOi0Shm1oqqLVkAOMKt9+NLaJ9pk1KZlViEyNDVOdHA wpWQbRZ7gNgWR6wihpa44bQtu+mmZmUswbKeJRfmwzY2vg7dvfFWcMLWgSX9t4zWzr3b yyvCZudu5BAeD2hq9ADWk3aT13xnIaSVa6BggYTR86zk7CT84GGEkj5TiiqMAx8qtZ/O FYaIlASbbddEQYvkC6zFRiCbsyNmJDdmXE+zM0luysqLr+fi2V7/kfbm0qqh3G/Jtzhf IahA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RPsNuzs1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si3586178ple.60.2022.01.24.14.04.10; Mon, 24 Jan 2022 14:04:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RPsNuzs1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1575913AbiAXVwm (ORCPT + 99 others); Mon, 24 Jan 2022 16:52:42 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:38896 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1450471AbiAXVUj (ORCPT ); Mon, 24 Jan 2022 16:20:39 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A95FDB811A2; Mon, 24 Jan 2022 21:20:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16067C340E4; Mon, 24 Jan 2022 21:20:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059236; bh=Qbnpal6S+UxOf65CG/ERZROcEXBzaAoH3S2RJUPcGq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RPsNuzs1COLkELw2/mZC11+TNSSZVDNo/qQzY/5W/HqRTaJC6zntbPT+5fop1mYvB NaWM0C74JnUpeNLWYNgRbprDdZ0k65Qgzus12mHtZwcedIZHNCFZs/39H78v1RyApS qsnbSyX2Y/53Wa398Vz+zswWhJt1d7IF6PWeQo9s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Jonathan Cameron , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.16 0515/1039] mips: lantiq: add support for clk_set_parent() Date: Mon, 24 Jan 2022 19:38:24 +0100 Message-Id: <20220124184142.604075292@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 76f66dfd60dc5d2f9dec22d99091fea1035c5d03 ] Provide a simple implementation of clk_set_parent() in the lantiq subarch so that callers of it will build without errors. Fixes these build errors: ERROR: modpost: "clk_set_parent" [sound/soc/jz4740/snd-soc-jz4740-i2s.ko] undefined! ERROR: modpost: "clk_set_parent" [sound/soc/atmel/snd-soc-atmel-i2s.ko] undefined! Fixes: 171bb2f19ed6 ("MIPS: Lantiq: Add initial support for Lantiq SoCs") Signed-off-by: Randy Dunlap Reported-by: kernel test robot --to=linux-mips@vger.kernel.org --cc="John Crispin " --cc="Jonathan Cameron " --cc="Russell King " --cc="Andy Shevchenko " --cc=alsa-devel@alsa-project.org --to="Thomas Bogendoerfer " Reviewed-by: Jonathan Cameron Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/lantiq/clk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/lantiq/clk.c b/arch/mips/lantiq/clk.c index 4916cccf378fd..7a623684d9b5e 100644 --- a/arch/mips/lantiq/clk.c +++ b/arch/mips/lantiq/clk.c @@ -164,6 +164,12 @@ struct clk *clk_get_parent(struct clk *clk) } EXPORT_SYMBOL(clk_get_parent); +int clk_set_parent(struct clk *clk, struct clk *parent) +{ + return 0; +} +EXPORT_SYMBOL(clk_set_parent); + static inline u32 get_counter_resolution(void) { u32 res; -- 2.34.1