Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp695509pxb; Tue, 5 Apr 2022 19:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzt9rGVR/0GWZ3gQunwX3izY9FAj96TowzKze/+zb3zg6jcXcHYuO8y9E2colNf+mWnux3 X-Received: by 2002:a05:6402:3593:b0:419:7a2d:4b0b with SMTP id y19-20020a056402359300b004197a2d4b0bmr6298529edc.39.1649210885897; Tue, 05 Apr 2022 19:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649210885; cv=none; d=google.com; s=arc-20160816; b=GFyMJdYdMoJWc1kTfa1cU6IbQhSyvqwnvHhSWNAsIBoUjBEA2Wegc9mBpQWlo7ZuCb W/5NlPKuepTfVokYbYp8f0pe7x/5RjPTza66RA87/Yaa7lh3gAwwsaV96a+cqOofjlp7 pKC0N71OiMJm5Mzt5YVLa1K9KXhcS0TZ4I90HVk2uSemG2mF++reon7rqPElXHchs26Z mGesic00fp1VFPnE1uaWyEFLznP6Eu2vKEKlG1XKIrI/CO0ospZJbVBOjKv+yqdQEMwW ooN7Fh4xp6IFgco43/rtE11K51/5EB1S5DdkWLurV6ukFSa4aGIR2r9tyubxiz3n8mk6 YdfQ== 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=BBHaIEjDYVjoVUO1X/6rT2dMtNzfGCeVbzgdWVRicGY=; b=APHkWjXnw/KOtXxET/T0LhtGYtfKjcZ+HxdGDJVsaikfkGIe2mzRpaypxtA2FLJDvc 9qk3DSzGsnECB8NQ1EsQ56+NS4EEWF+JTbe3l7zP3v+H+K5oe4mrSOnjvFW0tXv3TuHh j4zzw9PVLHSbW/dGtjr6y7SOD4dWc16KbyUY8uiLsc/SUIo8TgS1cIHDD5oHNDUk9SDE jwLAMabP5x3uKtrUi+rKFTjoxlJhNrJmS//O6noF5mp/cLv5we/R9xVAUaCaAMQsEsSW wLfPmdgDavEZe3rg+Jz9cybkpgQ7RAR0daxpzCI21MDaVCDmzx/bnVf8jsTbu2J/5Wgc GR8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V8mznJUw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020aa7c953000000b00418f0a48a03si11115000edt.257.2022.04.05.19.07.36; Tue, 05 Apr 2022 19:08:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V8mznJUw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S239554AbiDEIbV (ORCPT + 99 others); Tue, 5 Apr 2022 04:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234396AbiDEH6N (ORCPT ); Tue, 5 Apr 2022 03:58:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5730D9E9C7; Tue, 5 Apr 2022 00:52:20 -0700 (PDT) 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 833CFB81B9C; Tue, 5 Apr 2022 07:52:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFC16C34113; Tue, 5 Apr 2022 07:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145138; bh=sVR33FUtTlVIApPJsjKgr9pJZo5UOvcNrviZQ+t5OWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V8mznJUwR3qBiYgZ7kBjphq2Z+K2QL3I0t+BI5z0agIvOE6v5yGa3IWKEcjmgef+z ONxe7DJHMaDyA5syzojmS2yTkTE+RRmHIe8bRfV2lZaVZ2taIUPSiXeg1r3xRcxMx8 HJSlneFDUX9AFIJtOFnHP16iG1qYuqMd6gRLA0ng= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Linus Walleij , Herbert Xu , Sasha Levin Subject: [PATCH 5.17 0261/1126] hwrng: nomadik - Change clk_disable to clk_disable_unprepare Date: Tue, 5 Apr 2022 09:16:48 +0200 Message-Id: <20220405070415.272144540@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miaoqian Lin [ Upstream commit 7f0f1f3ef62ed7a40e30aff28115bd94c4211d1d ] The corresponding API for clk_prepare_enable is clk_disable_unprepare, other than clk_disable_unprepare. Fix this by changing clk_disable to clk_disable_unprepare. Fixes: beca35d05cc2 ("hwrng: nomadik - use clk_prepare_enable()") Signed-off-by: Miaoqian Lin Reviewed-by: Linus Walleij Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/char/hw_random/nomadik-rng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/hw_random/nomadik-rng.c b/drivers/char/hw_random/nomadik-rng.c index 67947a19aa22..e8f9621e7954 100644 --- a/drivers/char/hw_random/nomadik-rng.c +++ b/drivers/char/hw_random/nomadik-rng.c @@ -65,14 +65,14 @@ static int nmk_rng_probe(struct amba_device *dev, const struct amba_id *id) out_release: amba_release_regions(dev); out_clk: - clk_disable(rng_clk); + clk_disable_unprepare(rng_clk); return ret; } static void nmk_rng_remove(struct amba_device *dev) { amba_release_regions(dev); - clk_disable(rng_clk); + clk_disable_unprepare(rng_clk); } static const struct amba_id nmk_rng_ids[] = { -- 2.34.1