Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3548739pxb; Mon, 24 Jan 2022 11:59:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVx50v/xiGelyygMYUGgckM0sRy7G/cmOibFfZDZDFvHgIr+Q/JO+CaVVF5QAegTXIoX/G X-Received: by 2002:a17:90a:b702:: with SMTP id l2mr3465574pjr.126.1643054359060; Mon, 24 Jan 2022 11:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054359; cv=none; d=google.com; s=arc-20160816; b=CoNLidJ3a2naymBcdTevexO+3kR1tJCAEjTaJB9CDb7pH9n3Une/JqsEr81oEYj+jV 6llRDdb8nch+qpSj1RQukx0FcofSVcQqCrz+uKrmF6GiMy7wd+lrOa9pZXSQQPR1g1Qm GrIDNHvwuSXFF9ncPovzSOx1a3VnpbSdaulvMR0la+nyVVewRYH0cCko6khyQAe4s2iU 54j/iuJDFadEJcjjHiy7fezgCyfLA671jaag1CYiFBVaCbVG5GeRvepRfKoniTw8FGqQ qETI6+nk6MHteyXA45DCOJ9X8NvhdLt/VDRCpEpyb90T7QMZNYXh43ub7pH/bMGmK30P jBJQ== 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=UElBIX17Xhpd/NOyg5Wh8yvhY+cpkK89r0vpYjIQ5KE=; b=tkpJXzO8uKnLz9pyfY0ydFWqSaukhjjB8b1VAq4+fzRI7hMVqAIN7OqH1k87ykDhV0 86d9irUlNsUEP/k3utYTLLtjfx9SVdwsTX08zzEsvDBGatlW97OqniTHUh3XQd9bHeLw 9Y+Df6H8k54g6j2x0sRzLzXFRMSLV+Wls6TYgAUoblFYCX7hCCtJL3DAhok+TfpINstY 5g1Th3I027YKLWYYQGg6H0wxihyD8HHXfOe4ovAgwgOHL0A7P01qiqe2eTEJ8fuMLSLC nApHDZrUfzUd0mt+Xy06HL/pTG09ZeN2L2FoI5DVZcWJ4wx6ZbgQlbXqZIxZEi40kB/y JAZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LK+AkndQ; 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 j3si15150929pfu.291.2022.01.24.11.59.00; Mon, 24 Jan 2022 11:59:19 -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=LK+AkndQ; 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 S1344361AbiAXSyc (ORCPT + 99 others); Mon, 24 Jan 2022 13:54:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343954AbiAXSwr (ORCPT ); Mon, 24 Jan 2022 13:52:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170C1C06177D; Mon, 24 Jan 2022 10:52:26 -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 dfw.source.kernel.org (Postfix) with ESMTPS id ABA8F614EC; Mon, 24 Jan 2022 18:52:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 715D0C340E8; Mon, 24 Jan 2022 18:52:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050345; bh=x4SL9WF8io313e5A39RZiytXL/H7HNZcY5I6SgbcOpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LK+AkndQO4wk0E76lRCINlYVI3r72xApg4bYfV2FPKQYUefeL1KqYmVeALO/zPTh9 720EoYCFXFterTUAXuUea4/ne7b3q+jvdscAcTnkwCUBOBD7dms3ZKRySEUhmWQgjA On4HeLH7lUji/djLQfnrPWN4DaBqfrqLqP76Y7S8= 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.4 055/114] mips: bcm63xx: add support for clk_set_parent() Date: Mon, 24 Jan 2022 19:42:30 +0100 Message-Id: <20220124183928.802970550@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@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 ef268c9aac80d..fe90c1c86a600 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c @@ -339,6 +339,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