Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3555818pxb; Mon, 24 Jan 2022 12:07:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsxUSexYjVYPK91vq+/tjWPx70tOvejVmOpuqRYJjgjYcgrSE8h5JSkdIUh5bDG8Xz20MW X-Received: by 2002:a17:902:8c97:b0:14a:ec66:bbb0 with SMTP id t23-20020a1709028c9700b0014aec66bbb0mr15367332plo.68.1643054876131; Mon, 24 Jan 2022 12:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054876; cv=none; d=google.com; s=arc-20160816; b=B8Xp0+3r1W4zPZrsXV3o85fbh1wyi4+tf3sQXKnV5PA3bNTaAO+hStHyuKltuMxmpn yv8apzO6UpsazPa0qR1b0Q8RQWMPjJoq9nF9u09yZ8XAXHtug894qohB/3CxXD8XDyIB 3iP0C/OwLJw3IFKNxL5jYQ6WXRxiWhPp7j/QEsB/SMWfZAPuvjeVnAl1mV/ocFTTmG9Q thdSdl/GAjbFg32o69UO6tn/abA6LTYqok4WzfLxIWuAu2yrw9MeqnLcbuXSL9UgbGiL dUPK40WojMfTA5sICu5u3iAK+tzcR3h/0o18o73IBCxr22iMZMcyimiV/2OdwVn5X1or oD1w== 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=XbWWKIhZUcnSEDcVYlxml1rpws8oA9+GV0KcKqa+REM=; b=rl8vZ8MAQ6q4/KUF04osKpcI5LRSsKRi1d5dECry0zg7zMtCS9rxbmrhW2f+PPWivW y5nUuQ7g4m3sCMm1nB3Pc8H2wRjYfZ0bgN2fd4DyHE1NG4kYVc3tjraIYXp7jkV5u0a1 BmxR2N8DJd/Cg5jvFv5ouD1mQDCXAyMA3eKxVc7TXWJ1dChuTEihd0T4JejjW3VQ7TwK VZQxV2xUVWCAGnCkINfPK1Wh4y+aBgiRi8zI27C9oybwFq09aVonM5YFsbP2uxkvzKwj YFSOBgXUTITk+BoxLrU1RElCV7PIRrqZQWfypV2fGNKa0q+Km676tkIXbH3VAAxx3l/g ln8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TMD+evnF; 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 p2si12302654pld.445.2022.01.24.12.07.43; Mon, 24 Jan 2022 12:07:56 -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=TMD+evnF; 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 S1345962AbiAXTEv (ORCPT + 99 others); Mon, 24 Jan 2022 14:04:51 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:56714 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245463AbiAXS5l (ORCPT ); Mon, 24 Jan 2022 13:57:41 -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 17F9F6153A; Mon, 24 Jan 2022 18:57:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2359C340E5; Mon, 24 Jan 2022 18:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050660; bh=9ZnAhV7QLSl4tRYWVnlLpmppsIYCvGjGJBqgxDy0hwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TMD+evnF53eZEs3UnfqerAqzbc6CyDO0TigejtgXDEPNr/bj+b7SrsbH2vgROGX8j UGFgXGDcl9i0udRcY+UcQIbuE+ud9dHggKJdXKyOwMbkmEhWThBU5bxHCjGB2bIw0K Ag3WFwBJf7ZsdFpJUl8yarCBPlDHKL89DEu0aH0Y= 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.9 071/157] mips: bcm63xx: add support for clk_set_parent() Date: Mon, 24 Jan 2022 19:42:41 +0100 Message-Id: <20220124183935.047540583@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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 4f375050ab8e9..3be875a45c834 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c @@ -342,6 +342,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) { return clk->rate; -- 2.34.1