Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3624586pxb; Mon, 24 Jan 2022 13:47:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr+VvKZTNKV4rNo8rQUJoLYxHrNFOel/l4xeYqSoDA1Zw3cvVX33uHFRampyATUwyIAQ/F X-Received: by 2002:a63:9412:: with SMTP id m18mr13351945pge.66.1643060786010; Mon, 24 Jan 2022 13:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060786; cv=none; d=google.com; s=arc-20160816; b=UFXgSuFRjjxcPo9Cpz9cQ5Ypax1CUPKTuN1WurVmKr5ZhsK0Rt26iSfkki+6Hol1YR 9rG4xonMSYdBU5j8dGf4QYKplJhhmR5+ga8kgfciLkTldLZMFSj8kt9uT4RmcXVxOnIJ ZwdqEJ435PVIsEGSBNKzaHy0wzoOBrHJoMX7FPvVlgnUZuVp6NKsTha8m6HiNXiC53iJ e9P/72c+5Qs9Oq9IWhIneilbpSFndFC+QYqwJNfqUlIGOMAA2gujic8/gqP6iA9jml7O MsODia7jY/vf61650wrkf3dK8smTD+dCDIeDMgCmJ+3s4YqXX82szWA0kWner52bsB/9 IpjA== 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=Lek4WoVbdRbZJtbF4Od1gUluiBCF44IcFvMuNEsgkLg=; b=m5Rz3ABIHX5pSAWR1iFjKnlgzcLTsWAG/fkSnPb6lHd89Mn6lVDtHvbod2jm8CJ32c SIW41xhgRlgrEd/fkTpsBkQvzcnqkyA4PM9KCQwnsRKX6hOh8gVf49O1cBd7TJy3jsbm 5jQ/6TkGG9s76yfQFUEL6kZByGULawMRwfICOdJuhWjqvrjhIBrc/Wb2qvNmzOiKTypT PKNrp/AsK8S5Y590TVNI00daHHiggNdstX3EAjBGuFfGyQn1Wq81LKkCKQOvUoR3OFQ3 D4iNNdf9m2SvfQEBd+RnlbBD8sn5drjSmfXEWtWTQrPk490Fbm9s3JU+h5VYZ1bgOVmp w0hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JDPGAkDS; 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 s19si12555072plq.475.2022.01.24.13.46.13; Mon, 24 Jan 2022 13:46:25 -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=JDPGAkDS; 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 S1452094AbiAXVYC (ORCPT + 99 others); Mon, 24 Jan 2022 16:24:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443215AbiAXU4b (ORCPT ); Mon, 24 Jan 2022 15:56:31 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28A47C0D9431; Mon, 24 Jan 2022 11:18:05 -0800 (PST) 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 E55BAB8123D; Mon, 24 Jan 2022 19:18:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1B52C340E5; Mon, 24 Jan 2022 19:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051882; bh=TYR6G0G1NNZYgGiHfvo4P7O8iCjHHs0h9Uv+G6h0s/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JDPGAkDSImTTwFUOZ4m02MmyNheI3dwy3yO6hGF15Kwcwjf9yFWO2f9VNTMfdfm3c 4TecFQFjVezSt4smLjhHWwiKNzyFiJOXym/6+4MaeYtmN97LQXd4gMi21s3aKTSqHE vJicPHssYQ6kf/xDjWGmZhwfupSettaK2DH/v3eA= 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.19 118/239] mips: bcm63xx: add support for clk_set_parent() Date: Mon, 24 Jan 2022 19:42:36 +0100 Message-Id: <20220124183946.860857778@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@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 aba6e2d6a736c..dcfa0ea912fe1 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c @@ -387,6 +387,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