Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5115036pxb; Mon, 28 Mar 2022 08:08:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHXHq6LL/TUpwopVeX0bdC/peZYPzbuRqQxKn3wvxWQv8LbwnErTd/pOpydlN4ZbCOEE8W X-Received: by 2002:a05:6870:8182:b0:dd:cffa:9c29 with SMTP id k2-20020a056870818200b000ddcffa9c29mr11360989oae.82.1648480132415; Mon, 28 Mar 2022 08:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648480132; cv=none; d=google.com; s=arc-20160816; b=a5RFUbnzdSxArlBe9Y1pw2Max23CgiWCiEoTkjqMG5LwsVH/86PdmI2KoJRgk334LR lLlxAMy2Z+EvJT9EoqYswePljLg78sDLKSWC9dYB8xOCubXgKUdSQhc4YTgiusWnv+CP VZjaSdrSA3ZxzeRiF3CBM0GaPJfv4bmWMTx1cZ3gewIGUSlUC2y0PUWbZ/WMAXM0h8cP 10Vt8U2LrAraCN4h9k5VFi7IMPQhN8NpIIVfPLg+34MHBAq3V3HJS+qXXgfjOGj6Wgfz 4MISiOWaV61jgu8rPqk+ZQ48cd6ozYt27kQa4VvfRv5fD3k0oMYRRfP/e3GDRQSe77Y4 NB3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=Uak/QpIrJa1DBuemZKZT3JOZ1XEhoxbX0S2BhrTjsLQ=; b=D8Ry7T3eYbHEevMXHGNl+RpdpktjUzL9sMFKjVH/zr74wugiEiwh/ipJAL194kM7hk i0th+ZpdwoB0d+ilzTYb/RlU2NmD4jF6b/0QA9at0BDx/DDCa1fKTNwarceV664NVc03 m5jdNWa0bp8Joew9ehFT/bg4FsegUoP/+4GaEr079s1BKLFpOOSH8W5JoxXDuM4WpdJQ iFaKRu2lELv1JPe1vY5lVwNobO5u0C2K0P1kz4nUKzpRqegOqiJGhwQZQJQX9ysQqO4q mUxCg9mcpZu9v4fi/caqg1peqRGeNfr/GbeBPobjWwr7gFlQKE1Q6Y5kSAW/LGXUk1Ee tKqA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a9d6c17000000b005cb2fc1385csi9781974otq.216.2022.03.28.08.08.38; Mon, 28 Mar 2022 08:08:52 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241947AbiC1LxA (ORCPT + 99 others); Mon, 28 Mar 2022 07:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242493AbiC1Lne (ORCPT ); Mon, 28 Mar 2022 07:43:34 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE119275C6; Mon, 28 Mar 2022 04:38:31 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KRrJ55RMMzfZWN; Mon, 28 Mar 2022 19:36:37 +0800 (CST) Received: from dggpemm500015.china.huawei.com (7.185.36.181) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 28 Mar 2022 19:38:14 +0800 Received: from huawei.com (10.175.103.91) by dggpemm500015.china.huawei.com (7.185.36.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.21; Mon, 28 Mar 2022 19:38:14 +0800 From: Wang ShaoBo CC: , , , , , , , , Subject: [PATCH -next] media: platform: change clk_disable to clk_disable_unprepare Date: Mon, 28 Mar 2022 19:47:30 +0800 Message-ID: <20220328114730.3944817-1-bobo.shaobowang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggeme701-chm.china.huawei.com (10.1.199.97) To dggpemm500015.china.huawei.com (7.185.36.181) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Corresponding API pairs with clk_prepare_enable in fimc_is_enable_clocks() is clk_disable_unprepare, fix this by changing clk_disable to clk_disable_unprepare. Fixes: 9a761e436843 ("[media] exynos4-is: Add Exynos4x12 FIMC-IS driver") Signed-off-by: Wang ShaoBo --- drivers/media/platform/samsung/exynos4-is/fimc-is.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-is.c b/drivers/media/platform/samsung/exynos4-is/fimc-is.c index e55e411038f4..8e88b0f6662d 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-is.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-is.c @@ -140,7 +140,7 @@ static int fimc_is_enable_clocks(struct fimc_is *is) dev_err(&is->pdev->dev, "clock %s enable failed\n", fimc_is_clocks[i]); for (--i; i >= 0; i--) - clk_disable(is->clocks[i]); + clk_disable_unprepare(is->clocks[i]); return ret; } pr_debug("enabled clock: %s\n", fimc_is_clocks[i]); -- 2.25.1