Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp46152pxb; Mon, 13 Sep 2021 12:31:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjNW6Aofq5uvSH2YSlSRawslbt94hUCCWtG0nXNJfli9vo+Zq3Ge3YR4ypCoZyliPgfgDV X-Received: by 2002:a05:6402:42d4:: with SMTP id i20mr9316624edc.348.1631561473808; Mon, 13 Sep 2021 12:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631561473; cv=none; d=google.com; s=arc-20160816; b=FdMHZBmAovqjeMVyLs7C7ry0WEzqevDOMx/A3ereWsdumqOxA4fNPF7RNkaByUYqBn IcOmKz3D4MRbGCRxD9tMP7253Vv/VANRadS6JEuKUP8hyHLhu/kt+HI0FNxKYrRwEFU9 RXQvZ16JaIniMPJ36xv89IQ5gwaeSoBX8L7UjRDkcjPoKAiL29f4XWLZBg/1TZqqNubK dtrIDaSoajTVhwNFphl/pzLcbiFUV9cBj8WeurxwdUA3sO9ygV6jr++8oI3b2pVEfEDU TCqZQviFTKthnAPyxlBtklhxZcHRKx1UsC48Be/fgRb0g4zwqwdUaU6f8UIGcVAWvGsS 6JSg== 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=eHiXE6abeTZZYFjlSh8EGG/6gjkF8m8IwjNb6Ui1+JBpxQmUbyOKe57nICpG8Q1ckv Y8ETM7nB5/pBQVugM9iHfQSZY4aR56nCoo+6dtZ+4f1Gyx4758dtvcZcxdb4/H1gjbsT I2SUSvg74BQ27VW7wURkIJxK9FnlV/6eD/DhFSMgXh419ZuWS6I/mxGmJDAye1RDOFlD ctKes30WNeYkCUvksa46o7teXKN2hPsWdEYXRSOZiII8G1xGuWajrNo/IEhZOlw9jNc5 cF5sJyuPkqWAC6qJssS3S3Q1vIN0rSsHhbdx69nRry8+yx7NCuDy7BEXR/4xq78JpI1Y t73A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MupvYSzT; 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 t14si8225914ejy.51.2021.09.13.12.30.49; Mon, 13 Sep 2021 12:31:13 -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=MupvYSzT; 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 S238425AbhIMNgW (ORCPT + 99 others); Mon, 13 Sep 2021 09:36:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:53122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239851AbhIMNbV (ORCPT ); Mon, 13 Sep 2021 09:31:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3AA1E61360; Mon, 13 Sep 2021 13:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539523; bh=HSHrTQXN2KzLKUEw5TjHr0WGyk7B6dL5F3It8eBIkxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MupvYSzTDXGGkeyVjKNtBg+GIfMtOsOqeSFDfjCJh9Wuhtj7AeL0kjCRGq9In0Pzr JgQL57k4rtA/lf/jsDHCBy7//OhSnfJ4CUbZj656OLGRw3JrQcTUFvcGUz0DR5CwTt yYJByCrH/X83zWf74QQf8if0mJqWTbU1NMm8Tqog= 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.10 056/236] spi: coldfire-qspi: Use clk_disable_unprepare in the remove function Date: Mon, 13 Sep 2021 15:12:41 +0200 Message-Id: <20210913131102.260572744@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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