Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp135505pxb; Mon, 13 Sep 2021 15:09:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK6Sk3KU8h6LnrBKqUE6wPfl83zBVF8Izys7ReKXXI5+raaixMJIcfpiCat8gkH5/IXVnr X-Received: by 2002:a5d:9958:: with SMTP id v24mr9489968ios.201.1631570949882; Mon, 13 Sep 2021 15:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631570949; cv=none; d=google.com; s=arc-20160816; b=WLfWx7nInlwTo8SYtwQNEtxcL9bKSiJbgKfiQ9F8qCCtg/SdE2c+LLOmwlXfMhiagw SqfRnbu0ChEzatISWlOnKiYbNK5/JUDQMcGTYkKiHtOtAD4N7O73GclmZ9k35zk0YZYz +jEO9tWy8vaOrjBmC8GXZf8bzHxRSalz8lHoKrsHcSRjXpdS9qL/0DofibIvI7l1Um5T Eae/6L/7IH3u+mDx16Luxft22n5MlT17uRvJK+V5om7q9kFUXw0Tf+RLRuoggY+jJbBV 22RszFcJPB+c07W32rZFKKUapamkFWtVOQEWN2PsIK5ar3YZeRqSSUxBAN7U7gFIIBY6 8MnQ== 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=FDHuUoBLDWQRpCwiztG/wdQHHr52qmsJuxF5vkoGCck=; b=YseV4tUCH4GPsvN/H7Q4dmiM7h4euRJ8TuT1HJ6jAXaPqfbc/S35Yp0sAPHpUFUDGK 0yQLN5rbM/R4dFmq56I21sCLmyXFK/7RMGHUa4NN8ZfxArdTSMbmhSSJKp/QIkPgSKLZ D4hmb3JJ/hNBTNx66g/oVHdqh7TShvKrJgYlXLXc/nYDW21olBHzY2Qfy61rbW/UuStS XicaNNrYuSHvoECIJEyoh1sU3NEyMvuV+rJYO+qWK6VoO581yK1db3DrzKuKihFVMOVZ Yg9ThN41WaAni4DR123PSrhWqA5H5NDBfbn2lVRHAR0dPXQreFjvKED3gsgLAdEsU74q yNhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pqdEvvPJ; 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 q188si8906292jaa.111.2021.09.13.15.08.57; Mon, 13 Sep 2021 15:09:09 -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=@linuxfoundation.org header.s=korg header.b=pqdEvvPJ; 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 S244912AbhIMN6C (ORCPT + 99 others); Mon, 13 Sep 2021 09:58:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:40312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244082AbhIMNzg (ORCPT ); Mon, 13 Sep 2021 09:55:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0FBC561880; Mon, 13 Sep 2021 13:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631540131; bh=HSHrTQXN2KzLKUEw5TjHr0WGyk7B6dL5F3It8eBIkxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pqdEvvPJ9kEDcDZxm56JdHMIjze6huefMhxEP+zYD5BIZfUiAHLZ4+LIB2B4/ePeO /wJTSMp9+j5kDqY2zBs27SH2dmmktelPk7ZtH1lX+/haSGUTjVPeleKTtKpa48UZ6e p5KZk8UXD6F0mXrzU1i9SRZeVtV/2ogBSYdMWEIc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Mark Brown , Sasha Levin Subject: [PATCH 5.13 065/300] spi: coldfire-qspi: Use clk_disable_unprepare in the remove function Date: Mon, 13 Sep 2021 15:12:06 +0200 Message-Id: <20210913131111.555525871@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131109.253835823@linuxfoundation.org> References: <20210913131109.253835823@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: Christophe JAILLET [ Upstream commit d68f4c73d729245a47e70eb216fa24bc174ed2e2 ] 'clk_prepare_enable()' is used in the probe, so 'clk_disable_unprepare()' should be used in the remove function to be consistent. Fixes: 499de01c5c0b ("spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/ee91792ddba61342b0d3284cd4558a2b0016c4e7.1629319838.git.christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-coldfire-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c index 8996115ce736..263ce9047327 100644 --- a/drivers/spi/spi-coldfire-qspi.c +++ b/drivers/spi/spi-coldfire-qspi.c @@ -444,7 +444,7 @@ static int mcfqspi_remove(struct platform_device *pdev) mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR); mcfqspi_cs_teardown(mcfqspi); - clk_disable(mcfqspi->clk); + clk_disable_unprepare(mcfqspi->clk); return 0; } -- 2.30.2