Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4046406ybx; Mon, 4 Nov 2019 07:02:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxj34IB2CJTWzGwj0ZJzWxLp+pd0QNKuZwu/5jWfMSYbnwBoFNDLEvL2XSQyaubnzRav32d X-Received: by 2002:a17:906:e101:: with SMTP id gj1mr24924563ejb.253.1572879730920; Mon, 04 Nov 2019 07:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572879730; cv=none; d=google.com; s=arc-20160816; b=Yx2yNLaMz98v7pEOtGH0p0dgSxx8D5KOtBi68xgIs7bt3r9+j5KN9b/1e+9pepc8Dp z5sQShUV6JZZQbkwuOHZxb3TQuZuzA7AOkc/DWGf0yzBqTeuxD+tLrwKV0Ga5CU761jX T4n48hP7P0Y2NNZemGx/kn/0c5UAYe82iEGGLbAdmmozE6DE20Z0bjya3N9QeShySTYP NQXKojMbuekaZ3gfoOwzo/LXfdArrC+WaNXSImcq2+d9z7BZfUXb/J1OYmzEqbPFVnoj r8+Hdxc8fBhJQzdoMCFNCuck7kpslhwseBiUHSskdgfk4hVnetG2Pgwb7y2LnxCCR88n G/bg== 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=BT9YBqZKiz2HvVHCMcbm7iccT4OKFPOob8w/3y/w+v0=; b=V1bfOXBHPrLNcb4kmQVThTUbkcO9+sZavG8lMhkUGDdxz6m9wFfBwg8bJSTS4hmVlm aoByH9VhQj9ep57eO2vzyUfvPlvqJ3r03igf31xpKvXNRvoqs833xNNbmOP+GXomGSyn dV510s7sRiS1nMkAbIH4jwWl9nSmACrm8+w+yd4YiCHAuTqgdxEKnIap1b7Y4uKc0Whc rEy8/9ofsoC/ilBA14/N+Re4VLO2eaG0VbiiCG5I7DejskjZbM41PYzlN1YfOY6FPqwE wFELeSHPa+L5kRkaYVrZ9KBffWVKliqETG5138Gtb+VDA52SyCSu/qsd1wJQhAc1zLfQ rIWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FaSodyjq; 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 g1si4080268ejj.26.2019.11.04.07.01.44; Mon, 04 Nov 2019 07:02:10 -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=FaSodyjq; 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 S1728437AbfKDPBD (ORCPT + 99 others); Mon, 4 Nov 2019 10:01:03 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52933 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727788AbfKDPBD (ORCPT ); Mon, 4 Nov 2019 10:01:03 -0500 Received: by mail-wm1-f68.google.com with SMTP id c17so9664259wmk.2; Mon, 04 Nov 2019 07:01:01 -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=BT9YBqZKiz2HvVHCMcbm7iccT4OKFPOob8w/3y/w+v0=; b=FaSodyjqCmumV/TI2UFoHmOMF5dU8qpXnDR/6g8ZCMlTjZxbIOUmDoeb1AnVwHanzy rl7SRzfoYF3NBlcUcKzef1i8DuJfgIPjKfisMn7spZcGTjOT/pMsHSuf5EjtALtPTPBc pqM/DvR9Fmi5yx0vX8O3R0Pik/x2sudIzNUh31s8yn59geRGi/mlbJSq+ZMEHOf4S62g E0WI2oRnHdGK7kCjDvn3xD9k3c4Kg8OKX0tl86VfnEXtQugQg7kaMP1CkVOVprtdimRy PXdspFR7bbRdkQr1FMUIKkQ6+rYBZxaSkA0BvbM0IGMAZwqMk7V5r4W5ZkJhDy/DuIrG qTJQ== 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=BT9YBqZKiz2HvVHCMcbm7iccT4OKFPOob8w/3y/w+v0=; b=Ygmsa0ONSMksV7Hr987DGXt1tbV6vLvPlQpeCxRylwFz0aZEJTeVnpG3oTJJVSj4+t 85aXT3DxZKNHAtU6avdZdvrIFI5A34lCsTPAS/r99K/cUp78+cAaKm99TfjR1tj7cv2Y C1A5X7V0AENR/s/BYH6QESjgODUYRT6ZnaoaDM6pAn063eGL/cKYG+eTDeiWHRqmOl1U O9L8T+CZp2/sk3rdRjLxdOu4sNb3FJyA8q66gHApNCIa60WGptLj8FWmYuNjt1Y/4wz9 YulshQ3CoEzy9arkWju9bQZl3XhlO4zRGNOX8daU9xJfzVTh9WWsThtjf7Pe4NI10BQ6 2dLQ== X-Gm-Message-State: APjAAAVoSYw1Naq9X9lDogATDk+7lSqtzgFAYIPosX2B16nzYsRAaIS1 8Hp/0L8qpIrpYa19y+kzaQtFG8UnxXA= X-Received: by 2002:a7b:c84b:: with SMTP id c11mr16963467wml.158.1572879660689; Mon, 04 Nov 2019 07:01:00 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id o25sm21377302wro.21.2019.11.04.07.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 07:01:00 -0800 (PST) From: Chuhong Yuan Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] i2c: hix5hd2: add missed clk_disable_unprepare in remove Date: Mon, 4 Nov 2019 23:00:48 +0800 Message-Id: <20191104150049.6366-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 The driver forgets to disable and unprepare clk when remove. Add a call to clk_disable_unprepare to fix it. Signed-off-by: Chuhong Yuan --- drivers/i2c/busses/i2c-hix5hd2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-hix5hd2.c b/drivers/i2c/busses/i2c-hix5hd2.c index 8497c7a95dd4..224f830f77f9 100644 --- a/drivers/i2c/busses/i2c-hix5hd2.c +++ b/drivers/i2c/busses/i2c-hix5hd2.c @@ -477,6 +477,7 @@ static int hix5hd2_i2c_remove(struct platform_device *pdev) i2c_del_adapter(&priv->adap); pm_runtime_disable(priv->dev); pm_runtime_set_suspended(priv->dev); + clk_disable_unprepare(priv->clk); return 0; } -- 2.23.0