Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3635481pxb; Mon, 24 Jan 2022 14:04:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBQfU+uHw0AHn11OUhxkSWOpuKet/SaBCkeDaNxpuSROWUjPs5+yWS1l9FOFNYqX02DE4K X-Received: by 2002:a17:90a:8807:: with SMTP id s7mr334731pjn.223.1643061862492; 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=uDh7tjMXBJXOIDFlF8sF9IpOuPY3B+oQYdXVph7kdjKRPoAPgE0+tDYEymF5uDCqpo a+bkGKrKHLrHi5lGHVuxmYrIBk5CYrAtk3ZrBDtPx0wtRdC8vcMshcdLSwUdHTfmPSyc Vtg2r9YRGVpq/ZmliUM2MG9GsSsZeuWSnhnH1iIJ1CPSqyMaYKXUomBzZV/EV/OiNZ0H pT0Q6IIClQ7atLBqtAd4o+NSSwA7JrUuPLc4hbdKuhMzXFIJiRoM1kpwJwACaTT85B7w RCuICWT5OLiXxLiyQKd4aZbwd+Hz6md4Hdl+fsV+mgaSYmvVpDGZrm0vii4eBIfn9xXV fb8g== 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=pPjAjRLYkf7MJIBqNAEOlCNIgAMpF7ytx2sun04LnDI=; b=fTlLhhl6IYTbDPSzQw/rn3/KFPBnlcnhorrb6A18EDFkzL5yNOFa2UHDj98buX42M4 3cB0rDnZfLgZEI2YIT+GwXv5VZMCwisADOL6vZ6M06w1mQL3oBuiTZ+BJASYtqslaJDx QSvDaOBMfzQdZ7l4HGHyxJEWcOsfwRMqO4lh0ouFMWlt3YUsaLBVfUwMadU+TI8cpik+ FVSmivX3tN8D52zfYycO0sFNjXa368X3r12qdspci6MnLHD3SRJutNa1mQZ/dVubxkAd LFyuAYbbALJU3yCimlId9Uao2TCt1rl/6sLdlfEhf6398uDbWQZBnQrvbx7qpFvx6SlI AMow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uDoR8zkK; 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 j9si14653053pgj.128.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=uDoR8zkK; 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 S1575945AbiAXVwp (ORCPT + 99 others); Mon, 24 Jan 2022 16:52:45 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:43272 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1450490AbiAXVUk (ORCPT ); Mon, 24 Jan 2022 16:20:40 -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 CDDD7614C7; Mon, 24 Jan 2022 21:20:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1073C340E4; Mon, 24 Jan 2022 21:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059239; bh=hjv/7tHzGjCV2RdHyu0RB7cGIUyd+Cr9zZGJnMbWeZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uDoR8zkKF18/Mg2Wpib9Y0Pmmvv8gbKoLdP2Lt4GYCaDtkcRYf3nXXSe5aNSCAvu3 htRO0RDmq0Sws483//VH5NBr4sS7/jOT78tGQN1IYxl5SVrXqj44XwpGU/UFvPRVuw 3WGXAcf9tn3z31c0chTzAnGyClMIEHI0jKglZM+s= 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.16 0516/1039] mips: bcm63xx: add support for clk_set_parent() Date: Mon, 24 Jan 2022 19:38:25 +0100 Message-Id: <20220124184142.636743478@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 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 1c91064cb448b..6e6756e8fa0a9 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