Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3558735pxb; Mon, 24 Jan 2022 12:11:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnkj9F0gdrhzXjrYOwAXmPdWADu8NULS9MC+GKeuTpY1mZfJET2xu2CH+nUoBXwCs9rTyr X-Received: by 2002:a17:902:a70b:b0:149:75ae:4d63 with SMTP id w11-20020a170902a70b00b0014975ae4d63mr16280246plq.50.1643055108654; Mon, 24 Jan 2022 12:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055108; cv=none; d=google.com; s=arc-20160816; b=Dflb01AZrtXNRmiiSbsVG8M2ymXIuEIkTgbOT5qhersN3q7xChAezQsdnHG/sKr6zK nI+pQQpToUCTrtk/UnGM/aIHngAg9Re8pNInzOhy6/C2NOqof7xkIEkuIYEOlaieiVTB X8t529u+lhSepDOMPiq50bkShhEv92qXQCGWmgRjup5XqOGBx+a1Zabfkq/8IBqO6F1J fTQ/UCaO68uUiY76WeI5Ozpr7v/oMUb/otZLisgTU5v/hmix97HjGKQSxxyZm7gn3YF+ oVlwZ05hFm5zuhsD9jvooTS3uwWEXMIjoa9XbYknS7VDVvX60gN3/gCft9TMXflcKD9S S1sA== 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=R7hbrb8PIN89MsmVKUChqJHjemYDnHQKx5G1k0z+kyQ=; b=TK1vTAYtDx48jy1pcIUZOGK05DZ9AM1m/2fOeFV1qXIhLtdMl/4GbiFiHXJk9o++AR vgmIMe0eBpFa+nPcLRlkN+f+LRnp4d194CLm4AjwGIfeKIfN1bWJmgmoVxsL44Bd8nYs BI919z2blcSF0W+7ZC1YtNYHIodXjA2FZokwxtSwm8Pc7X/CN7QUCuu4jJ6InjS2W7Ad XYilAJVEqACrTBalf1KLv9OMRzkItofR2PPLNKZjGzfejo/XBcA+cyIt+1I/MUU0H+v4 G8GcPutdjb5UUSXxXB2AcswJepM53yLL95fU22D3jjxX1ZKFrFY64R36m1Igg6DPuOmx rIdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xow3ulbR; 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 lw8si282516pjb.158.2022.01.24.12.11.36; Mon, 24 Jan 2022 12:11:48 -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=Xow3ulbR; 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 S1348283AbiAXTPK (ORCPT + 99 others); Mon, 24 Jan 2022 14:15:10 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:34852 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346466AbiAXTGc (ORCPT ); Mon, 24 Jan 2022 14:06:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B657F60B7B; Mon, 24 Jan 2022 19:06:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ACFFC340E5; Mon, 24 Jan 2022 19:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051191; bh=6aZxP0g4u8y40VBC+MWBOQ/7B6eeg9OTY1wH6MZHeqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xow3ulbR/E45AjR19OBCJSTYO9wZiAdv/GbSlm4keaFiuBVhVu5giYPDnRPPNdDUe jekIX4FJunsV0bTbzYn5B14DPUAIjDxyNODXyhrV/BqUtS2yfHuUvBedlLUNArC3Tt gWAtCAl+e0KR88jnFWdrkH3oOX1HU8vCHLd/Y1pI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Jonathan Cameron , Florian Fainelli , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 4.14 084/186] mips: bcm63xx: add support for clk_set_parent() Date: Mon, 24 Jan 2022 19:42:39 +0100 Message-Id: <20220124183939.819403611@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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 6f03055d508ff4feb8db02ba3df9303a1db8d381 ] The MIPS BMC63XX subarch does not provide/support clk_set_parent(). This causes build errors in a few drivers, so add a simple implementation of that function 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: e7300d04bd08 ("MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs." ) Signed-off-by: Randy Dunlap Reviewed-by: Jonathan Cameron Acked-by: Florian Fainelli Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/bcm63xx/clk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c index d2a5054b0492b..73f2534b9676d 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c @@ -343,6 +343,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); + unsigned long clk_get_rate(struct clk *clk) { if (!clk) -- 2.34.1