Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp326003pxb; Sat, 10 Apr 2021 04:14:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIHNrDfrYdIug4Wf8LhdQIuuY0NtcGyZ0NLEJMcrBDEXseAa4xBoPvy5WSX1YZhyGZvreQ X-Received: by 2002:a63:4c55:: with SMTP id m21mr18012012pgl.251.1618053296725; Sat, 10 Apr 2021 04:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618053296; cv=none; d=google.com; s=arc-20160816; b=hiUTe61xfqEr8puEI7yCRqD9sUtohC3mRRpdyGAmmvnPfH8JqxuaVMF9aJSq7h1tk3 IFg/AKkMFXZBPV7VyCtHbONJ+n2jnIFS6SU/YU8YRy4gNzL24L31f1Egqz0W/dzzlLy0 QirWekuMrHxM66HR7WpwP5OXxCnL+Xgj7L9JGVVss91qr+qlbGfrC5j9wyXQyBzmjUp3 ugwWoM8EX3p38YpcEnVZhbM4TnmXgENI2I1q88S/v0cH3nQxq2Dg41W3VMPx5ifGJV6W IjSj3TGyrGJGnh3mYx/iDJDQHUTpV3eECey7hW30r1dT3q0wb5dnF0nhEEje+qHvGAXy VbkQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/A1ey0fLWzt4WfgOVIBJQ6OOA/NjG5WdKypO2QtjLjk=; b=AyesrAnjEupLT3qMEezee8c/fRI3L2HY7SGS6NKk+rR/DtBr8PDS4zRgb4lZ+Wop3l 7aGVHqcNOrWGkTyszPHsUQWM7yREJCtJM5bZ2/hbIRYb4GP/lnIKwUvVHOzZgbJHJtmv Xo8asjlEz0R8LT/JMT8UQUse+oGjl7dGyIpHvMGEnu1n0bp98ghnojv41FlGGID2jviT 2pGKL+94cYUwhMyG7KIFFtoNWgLWnZ/3EkTnbYVO+yYUCVlVNMO0ndbL07hJ4KFyc/mt uXMD6g3xYep6eQqhcXRnHdq36YY76woxW34Ve/OI2SYUaFIW7tXRDKT7An0NrMS0dTNk GVAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=cXylEKo+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s194si5420880pfs.276.2021.04.10.04.14.44; Sat, 10 Apr 2021 04:14:56 -0700 (PDT) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=cXylEKo+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234674AbhDJLOX (ORCPT + 99 others); Sat, 10 Apr 2021 07:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234580AbhDJLOT (ORCPT ); Sat, 10 Apr 2021 07:14:19 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC84C061762 for ; Sat, 10 Apr 2021 04:14:04 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5-20020a05600c0245b029011a8273f85eso4275027wmj.1 for ; Sat, 10 Apr 2021 04:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/A1ey0fLWzt4WfgOVIBJQ6OOA/NjG5WdKypO2QtjLjk=; b=cXylEKo+G+FGoGWw/Pc7EvcipCQMgdCwsCVSuOn0lNMElci4Uwgw6QgfFeBTzpxfv9 EtSFvasQCMjEjVFW/9G2U7CsPYrf5PfziFhGF3dNFZMr3uMkU82tc6C1Wwbv7VA0KHc8 ojOqmLZSFhtzbh6iDgmLFjhW/LiWXjoubdAIO0mu6YJGyBTKNHA8a0ldQsuPeAQrhqDN ozDkZ2wc/vJzx52g7FMIIU9DsjeYj/hlKPMGLvGLGNjPKrdUbdRQbNWuqfl2G08X56/L l2oehw6RUsJc9un73dH43V3lZTAbXU6OThn4MWGYBzBt2C5qKNd7ydWlTgpGS4bAYyk0 KBRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/A1ey0fLWzt4WfgOVIBJQ6OOA/NjG5WdKypO2QtjLjk=; b=CnUBQCkj6xmjG6TUgnJyJAvWHR2SxXCNzwF/WIRkMg4OVea6P4cf+jUojmiQC59H44 PMB2XQlFXyHWPfbalzq6MXc/s2kAB2QZyZuDOaTRZkBZj+JEfe5n2w+ayXRkuMbhM6W8 c6XoS+A4NN16gI02IDBPdWTwmXW2AwZSAnxWBCnHR/1eLLnb1pLIqAd+U+oaXzg+20T2 9KZ8fyi0koH8g1XkvmXR5y9Rz79yL5DNclc6nLCQBu1s6MrSWZMHN25qp84hgVuNn6xC q6gJ8XxZf/zGS6k8g1YkK3+9Nud3rXoiisFIk50XQbmBMf58RBfhNXfWkv/29Y7EmN5K wAVg== X-Gm-Message-State: AOAM532d33s+5vg0w+mEhCKX3Z9IUiF6psm2AmYjkIO3ISAOesMNXqei g02uI2EnzfdWnV5DeBEnZRQSWQ== X-Received: by 2002:a1c:6446:: with SMTP id y67mr255983wmb.145.1618053243628; Sat, 10 Apr 2021 04:14:03 -0700 (PDT) Received: from starbuck.lan (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id s8sm8370117wrn.97.2021.04.10.04.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 04:14:03 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood Cc: Jerome Brunet , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Stephen Boyd Subject: [PATCH 2/5] ASoC: wcd934x: use the clock provider API Date: Sat, 10 Apr 2021 13:13:53 +0200 Message-Id: <20210410111356.467340-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210410111356.467340-1-jbrunet@baylibre.com> References: <20210410111356.467340-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clock providers should use the clk_hw API Signed-off-by: Jerome Brunet --- sound/soc/codecs/wcd934x.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c index 5fe403307b72..ae3ea136a9f8 100644 --- a/sound/soc/codecs/wcd934x.c +++ b/sound/soc/codecs/wcd934x.c @@ -2116,11 +2116,13 @@ static struct clk *wcd934x_register_mclk_output(struct wcd934x_codec *wcd) wcd->hw.init = &init; hw = &wcd->hw; - ret = clk_hw_register(wcd->dev->parent, hw); + ret = devm_clk_hw_register(wcd->dev->parent, hw); if (ret) return ERR_PTR(ret); - of_clk_add_provider(np, of_clk_src_simple_get, hw->clk); + ret = devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, hw); + if (ret) + return ERR_PTR(ret); return NULL; } -- 2.30.2