Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3573666pxb; Mon, 24 Jan 2022 12:33:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVZ4XfUqXcU2HEqvL/eFS2y8OEMYEMyEoH0eKEov0o0OfVulb3bvOY21ep+MJRJfQMA5tq X-Received: by 2002:a05:6a00:c88:b0:4c8:cc0d:6da with SMTP id a8-20020a056a000c8800b004c8cc0d06damr7673308pfv.36.1643056277819; Mon, 24 Jan 2022 12:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056277; cv=none; d=google.com; s=arc-20160816; b=zfU8do2zVlGbkUh7MJCNtbSrW4sUyKeD5JKap1jSXp2YAc+ATM9wEps3lpp2lQ0AsS HvMLAhW9LFcEhiCSap6CC2LHEc0HkH9X1iZMxOiGv/sThuhqP6bSLUInxQQsqoZkXPIQ 8XbHcsyVhTofq/H2A0dYUDXQWlV/NadwPlQQ/vlfef77Yj7OJPkooGLlesdrq8kE9vLl 8CgyuD24zWlB/Qh2cm/Cm3twTMp412JcTiwMr+/m3mSN9lOZjUaxDPAEYsT6kqCiwOXW OBjMLXWf/OTjfbhlP3YSUZyi8X1tBCqsSwXCApqf0gmkBht1FlkUjFFEPRNdBCrf+9Rl y1YA== 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=s1IYTadXP+TaMNZE1xsl+WTeKYdI2QhFsy29OvfzWbFb27b+0HS41RaFRJeEDBJzAk sHaxtmJG8W531Iht8LnG0KlDNJGZd4w7T4RLYfSoSuK9teGNK3za7dngLz54MsKu8Uoz n3hLci1bT/EV5m3HyK7oEy0C/uaCKIChf0fpd6MbHtIJ814P8D76HTMFKR8pSguJh2hm qjHDN6I1PlHiFmVNUBkCK0k3AZMNvO86wmwp3JBvpXktbYp0JrStVtyk0EBN8eIzxW4G zmjgug5X2BTQRlDtttO8eMKZjBDydOmP2FwEpbcqXSlSfUro/xD2IK2cZIrmuqIG1z3p aDiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wLEgCA0f; 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 i9si15144471pgs.248.2022.01.24.12.31.05; Mon, 24 Jan 2022 12:31:17 -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=wLEgCA0f; 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 S1354577AbiAXTgr (ORCPT + 99 others); Mon, 24 Jan 2022 14:36:47 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:54946 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353025AbiAXTbt (ORCPT ); Mon, 24 Jan 2022 14:31:49 -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 49212B81215; Mon, 24 Jan 2022 19:31:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BDD4C340E5; Mon, 24 Jan 2022 19:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052707; bh=TYR6G0G1NNZYgGiHfvo4P7O8iCjHHs0h9Uv+G6h0s/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wLEgCA0fM+DeHukj/oXpjTPaLXtLquEGWaVDLjZQXo2dE08AUT9UPEwPT/X2hUCec fyG7c8GXqPIv5ZRQLZa3xOe4p9r9+6vda93T6cqG25J4pUpQDsjrNta931ykNRDKA6 QgpKvnnl+KpdZsRx3YMj4JThEx6pJlxwwvTL27TM= 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 5.4 149/320] mips: bcm63xx: add support for clk_set_parent() Date: Mon, 24 Jan 2022 19:42:13 +0100 Message-Id: <20220124183958.705625217@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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