Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4101430ybx; Mon, 4 Nov 2019 07:53:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzaOhXETvof1J+U3rYtHD1VThIK2xyAI01wN/MIbcMUlCB2eIFgiZjQDi4T2ghgCwcp7THg X-Received: by 2002:a17:907:429e:: with SMTP id ny22mr23307806ejb.174.1572882786732; Mon, 04 Nov 2019 07:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572882786; cv=none; d=google.com; s=arc-20160816; b=fcO71rhfH+pbZ0NZJYqbMTbQw43Ob/fdKpNDeaRZiMcPUpw/qFPNhJfYtR9/YsFxom JeOO1mVhltJ+gA/qNF23umXrCeLNPV4FV3XNSDRkXQJ4ylXk5mFD0zGqwrHurBbm+x5k gPOk1lYdHwvNTSvxz+Tt58qqVCUWrndBuTWErL7zGeGhZWggAZVzUCXlSkDsbeum94nt eHTiQiPxiiRO6fWIPoPMZa8ZlIbTZGmWILc4aKCAVsUqsytEoGwjczPWkMM9FaLWm4f+ 5fCI3V7XcOlNbTyO028NR+qBVF8ki1IpbV9ib4oKkRhXZGkLy2YNfDk0KssdcC3b7yx8 TnPg== 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=5Gh6ypC21DF1xtMKX6b7wG5FsVhzjCIpzo9aEJOM0Ec=; b=NVOpND9DSt6b1fAozQeOqy3NnPiZOYCywfuWQukO//P0LQKh7laI8lF048zqFRHUuB 8Yo40op8OmMeKz0yoiPPFfMsnYg/d31uqpD0yPqxp0AQx7fCjsvKz7YU4KVmhBNh8yus /4O2l0yBRaX9jZ955TrkG2OPcsGh9epDfZkni4vhW2FmXlQATniZUpif3X/RQTSNLp+v BEraKujWI4Ue3sPWbjaqj7Jq7jomV76pgcECUGpexcxEkDQ/oGcButbQ9Q8b7NniIDqI bCHE8yaiD6zFp42iDpAik7HcqTfkqTZRV6AuGWB2xjYPTmCppmHW0rI4P1EZRczQUN8O QhYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=im3j2OBb; 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 a6si7773810edl.108.2019.11.04.07.52.43; Mon, 04 Nov 2019 07:53:06 -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=im3j2OBb; 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 S1729122AbfKDPt7 (ORCPT + 99 others); Mon, 4 Nov 2019 10:49:59 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53554 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727838AbfKDPt7 (ORCPT ); Mon, 4 Nov 2019 10:49:59 -0500 Received: by mail-wm1-f65.google.com with SMTP id x4so6070775wmi.3; Mon, 04 Nov 2019 07:49:57 -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=5Gh6ypC21DF1xtMKX6b7wG5FsVhzjCIpzo9aEJOM0Ec=; b=im3j2OBbbqi4Fc6j0I3KRw5w3dJD+PpY4wjlEOrP3B2bqWJXjq6Oj32CwXt0fiDWYl qkQ/1govBFgqO8lDQVfxIGGJUi49jLWrDdMOuFl8Ei5jLh37feq4/6FWPDec/b+/DSNe YGtfjOwAf0mi/fXBruyCTSbdQrwEnefKsA9FwF0BgQxNj7r6tdv2kunbNFtyCMfBONrb ddgigulvNajaQblYrKEq59EZYeEP56Me8KgDwW8MahMr17IWkEJp8pp5+iU4T3syzFJD Nol9qlrgcq4JSTVIxTz5nZi9+1+SjnMk17x/rwxVBP9cRqHZ/2hxuwOJDGyTNoVjlEmT N25Q== 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=5Gh6ypC21DF1xtMKX6b7wG5FsVhzjCIpzo9aEJOM0Ec=; b=RkLGuGrNBAi+hQ8Ik7g8DYwbNNlQtLca9gRB0wvd+HBzR4y6NECpPqE1hJdi6YL+zt Cm75y53e4YSQUacn/FUazxcOiwxPYb5ukavZ9kw4OlsBQThu+FpofxTq2I8Mki/ea6uW MWazYM2e89RwAT37qfL0M7/vMPPm+3jvA/sVX91yYq13kNTwLSDbec3250Gv+1LNG3G9 tv/9+Urk+2NqcRo0NL+A0wxNMmxqqKsQJXvuNzRLfSqNsfeQ1j7Tk6uMTB8rJdBqFoGZ YJbJ0PMy6pCIlaqHsQ3r+fgL9QdUyskzuIqG9MJNrZpzGk9MhMX0D3u8JxATPpIwGFn3 5rMg== X-Gm-Message-State: APjAAAXtAGabodINOHUFFp215Lz7ec2SB6MqAxP+14+wtQ5aZKQdxvlt 0yLaPoUzs2PTcovWouVIKf4= X-Received: by 2002:a05:600c:28c:: with SMTP id 12mr16472749wmk.25.1572882597179; Mon, 04 Nov 2019 07:49:57 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id i71sm23332521wri.68.2019.11.04.07.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 07:49:56 -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] media: exynos4-is: add missed clk_disable_unprepare in remove Date: Mon, 4 Nov 2019 23:49:42 +0800 Message-Id: <20191104154942.8935-1-hslester96@gmail.com> X-Mailer: git-send-email 2.23.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 --- drivers/media/platform/exynos4-is/fimc-lite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index e87c6a09205b..6748bd96aada 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c @@ -1614,6 +1614,7 @@ static int fimc_lite_remove(struct platform_device *pdev) struct fimc_lite *fimc = platform_get_drvdata(pdev); struct device *dev = &pdev->dev; + clk_disable_unprepare(fimc->clock); pm_runtime_disable(dev); pm_runtime_set_suspended(dev); fimc_lite_unregister_capture_subdev(fimc); -- 2.23.0