Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1634324ybl; Wed, 18 Dec 2019 23:49:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxjigaNWQu9RqN+zEplikxFhhRU7WWNQ0eTJoOiSDQwKp2Dva4twjFden4Q3xjGpFj3AAse X-Received: by 2002:a9d:6e12:: with SMTP id e18mr6934633otr.47.1576741792202; Wed, 18 Dec 2019 23:49:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576741792; cv=none; d=google.com; s=arc-20160816; b=vqh3MiSHxi5mAuMPno/zSbKO86vLvyuo2RgaBhwBeisfQcNeEM9H/zAyQlFXple4IG 7kZ3mtBz6GxX1el+jGbmzxtiuDgQY9wkfCtrV/NSuItjwFAQxOTnO+ubsC8MIEWT3lvO pc908YvT/nMUuPWtlQgaZPAhakTURTLYsVabMBiCQ33pAH8y1yfnEpAgxS3KLrucA++W 04KuW5yh+2I2F+aAJKAiOUnS2QCcil92OZ1yEFxGNb15Jt7pN6xbkpKLzFwrrDpMxBaz oHkcGOaEi5nl49R88mgoWQG7N60qsCaPahiFMeF73Xs0fatW/P5NduruALL11rxSPrIB 85BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=hTBaTcwtZhnl+1WkSjy+81B8m71lqLhfOOtaR07ioF4=; b=kBQ7EChYIHToglPUt/pMSNe0CvQw6HvRQooVeaxozxmJvoUXVZLGR8nZlaHXvyebPN nG9RSujKDe/oiQjWojhzYfqxtJuHZNfwRtsYYF2FLtINL7QW694I6TJFdTTj6sqj0cds 7LL1J2XC7lAeu/YEMIP3hyH/3vzyoAwA0GoepCC712fHje224dOVQUSayJbDSGgxbkPf PjeViv1PUKexphBTaMX31uA5DnqfsEdiV3j6QCzCp89driGmVwQKubMWEExceBF3nLWH 83qRamgrp53NZ6EbU/q7J+FFzMjkIoaoqdageoiDd7sqRR+whRXj+RxKzkyXdzIRfVJS 4BLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mmRldR65; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si2690334oix.100.2019.12.18.23.49.40; Wed, 18 Dec 2019 23:49:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mmRldR65; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726712AbfLSHsm (ORCPT + 99 others); Thu, 19 Dec 2019 02:48:42 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:55414 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbfLSHsm (ORCPT ); Thu, 19 Dec 2019 02:48:42 -0500 Received: by mail-pj1-f65.google.com with SMTP id d5so2106191pjz.5; Wed, 18 Dec 2019 23:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hTBaTcwtZhnl+1WkSjy+81B8m71lqLhfOOtaR07ioF4=; b=mmRldR65wsCwcUz+D5TDJCVDB3Zu/CH++jZeFoIYNHub11F6SsqtqgyIA833Zfw12o dRP73VgdDhN65zuf1j7Pw2MQqzP2wZ0PBkC18lFuGpUlWvLxd8MpYUKGgSaKVucH/rvS 4I/hDdTs4wrOG16MXCcxxHTQM9rY8uoR1GikHk8osZrHiAv87+hWyhWzpAlblc0lwACN c0fFob9gu3Ww+cHNYBFmwSrrhsc1no2fyiU/bWmju7USIpI7hHR9YGa/dEIcObbOsC1d NLzdUR1HxYRW7tF9jc0PXRCLnDiI3occbF02kqtzLCtXIxPl0Adl/K63hYg/pbEeL0Hc x/Mg== 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:mime-version :content-transfer-encoding; bh=hTBaTcwtZhnl+1WkSjy+81B8m71lqLhfOOtaR07ioF4=; b=LtjiH0deKzshzrNsORHNZMkGjCuhk2V7cPCvYUmzxeCjBjBdnDkOVIuJ2d12aPRMnB KZPrtZPr89qZKe4ZHs82E9FucPVNktVuiPILZidliz2LQI4Ng/ZMQhDVd+Xc+pIZVWy7 jQwEeZjFoXtcRK2NhIEvsdKX+bTBgH2ia5CPKC2gxMAaUrW4WD4NrpRnYb3uyw1VCVXa l/ddetAN51bRMzO1oLOC4ICTux0ZFOKi50pv5cSOcX0xd+rSGNXtCp9Ygdr/s90IbFyO itdLv/AgHm9Bk7ymCsyWun7malvZAgNlsFnnZt83d2v03B6EQeJr4KUOFNMRsB/6K89H GMHg== X-Gm-Message-State: APjAAAWTCJvU3ixMaJltGyWO0mNgxf9Ff6fUvfttP8ADvQacLddi32kZ BUv68UHauChoRvZcupaFbnU= X-Received: by 2002:a17:902:ac8b:: with SMTP id h11mr7742793plr.87.1576741721330; Wed, 18 Dec 2019 23:48:41 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id k4sm6423315pfk.11.2019.12.18.23.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 23:48:40 -0800 (PST) From: Chuhong Yuan Cc: Kyungmin Park , Sylwester Nawrocki , Mauro Carvalho Chehab , Kukjin Kim , Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH v2 RFT] media: exynos4-is: add missed clk_disable_unprepare in remove Date: Thu, 19 Dec 2019 15:48:24 +0800 Message-Id: <20191219074824.15047-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver forgets to disable and unprepare clock when remove. Add a call to clk_disable_unprepare() to fix it. Signed-off-by: Chuhong Yuan --- Changes in v2: - Add a check of pm_runtime_enable() to match enable in probe. - Add RFT tag. drivers/media/platform/exynos4-is/fimc-lite.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index e87c6a09205b..17de14fbba31 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c @@ -1614,6 +1614,9 @@ static int fimc_lite_remove(struct platform_device *pdev) struct fimc_lite *fimc = platform_get_drvdata(pdev); struct device *dev = &pdev->dev; + if (!pm_runtime_enabled(dev)) + clk_disable_unprepare(fimc->clock); + pm_runtime_disable(dev); pm_runtime_set_suspended(dev); fimc_lite_unregister_capture_subdev(fimc); -- 2.24.0