Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp951292ybx; Tue, 5 Nov 2019 08:03:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzu4igI3AOQD1tjAoleGCCHbBPaXUPy/Diyo+m3c91dQWg/6RcxLr1uGDcL54hIx8Ugc4Cy X-Received: by 2002:a17:906:6dd3:: with SMTP id j19mr29158970ejt.144.1572969795867; Tue, 05 Nov 2019 08:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572969795; cv=none; d=google.com; s=arc-20160816; b=IBsNRRFdnM4/d5whN/RP3Gl6g9ylHMarJrx61emY3+WYj+5zctkjm3neOJrp/+Fvs1 HjcppytSZ8NFw8/dL3rSnnfwWdEUHYOspmAMwqy90Q57xaT/q4+ZDp5wDc+qvXWwT2Qg QV82IWOdfNHM/uI4jNL8Ybqxh8tN2mMTgSciWAKmPLODpAMcPotqAZu1Ga6DsVpjwd3d E3Jn7+3+pLJaMhr0hMJeBE0NmJ5sipOMkZIpnvUlAFSVWVdLQS/jCg74BGDAVsn4Fj+I FYg0nvMbRigPxAPwP3sBTyhH6j4qxrGay5F2CmQ4HtdCY7AdmVWg9MBDZSSQmvzIeJhu hIYQ== 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=2rC8ggX+aC8YuG4dw8OqC3Cq4cY6/6sYtuLebkBYV4k=; b=i40N8Ngdz0cBLvptKnJrp7KeYDC6QyuaSf6yTIwysGs/0Y+jPCQhRVHha+CdfZbC3B TtYuj5VJL9fxCpmBYDzhYKgfPWjokUwAZIpUJF8zZ6wVf76Iw6QQdhgP0+1JnBNJfPlc NBlhj+OKqXomH+BpmaDoEGo+n71Oy8vIG2Iu13nNBPCEQ3C4F2lTs7Z1qjXM/uaJ9xBf it4drVUnrIGZNxINBCovySPdh+0nKV2iOACFwXwylOn5SNzpwejB7ugwRetevf9Tq8f6 6x7+dAvTxuA/2WWLNh3wJ1iDpT69QdBauazlASXLJXfeJQYORZgGyZb1N4C+3qke/Rsf mmEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DvEC2H29; 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 i5si10071837edj.107.2019.11.05.08.02.51; Tue, 05 Nov 2019 08:03:15 -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=DvEC2H29; 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 S2390082AbfKEQBC (ORCPT + 99 others); Tue, 5 Nov 2019 11:01:02 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52751 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389571AbfKEQBC (ORCPT ); Tue, 5 Nov 2019 11:01:02 -0500 Received: by mail-wm1-f66.google.com with SMTP id c17so14234360wmk.2; Tue, 05 Nov 2019 08:00:59 -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=2rC8ggX+aC8YuG4dw8OqC3Cq4cY6/6sYtuLebkBYV4k=; b=DvEC2H29tCL+5FSH3h12iT9678mGG5PYHCknN/4DD/qmkbY0zsnvhF6cxSvNZJJaPE Fl9dfbN+IA0bbrWN9aTeyBXbqI2E9Xvs32sfb8+unxxZXeZjR6++wQv3Wda8TEqymh0r tOeHIIRA9YmwNw7zH0hzB5/qDwSgYNqgnNbzWGS/XFTDp+f3/nBf+b5CUZUNsQIS8Ihc F8HHsZHjKlOBkvZDsDB0K7cLtDdFzJdQsMlgrGcse6TuLYRIEj6UKo5SI4HKZMmAWqo2 O5V3v3eNXvGY2oPub3QLVw4Ui9GxOAkVThPOO65KCuLrOCuQJq8DGyi+VwrwjPUgpjJd 0oJQ== 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=2rC8ggX+aC8YuG4dw8OqC3Cq4cY6/6sYtuLebkBYV4k=; b=ulA36M3xfFOWRdWeVOIlST3sxS/ewpAoEkU6dnK0epBembRcACRSv0A9TF1YS8g0C0 pFayvIoU5BV8keQSKVC1fTAknZzgZFNi7VqyBqj/U+LRYKlu6mTUKZ+4DBrvcKdgi2z3 dGxNw3N+hd3/Nl47ckYslQlKn5ATYZQNhjUh0I5IcSQcKNb907lQlDXZBb3QwffpCwwO bQWkvLwBhlOLgPXCPEcVLb6YaeXO+IlMkzoYuB4rJZh+ntIT0g17kpcpKaK/0tnqeEG6 Gqu6nKZm5WZ10KRGUi/JkpNIS60KWdu4KoM7HJ9MzuCsEphElQeaNsRgI4SeH+lw07il zoCQ== X-Gm-Message-State: APjAAAW34PqImE3T6LTvLJ8LYlh32s9x7uSTm4KN62RknDX8QRFo2CmK 42V2g+ZkqU6vb1JVhXfGCEdhsfHccP8= X-Received: by 2002:a7b:c4c8:: with SMTP id g8mr4549883wmk.36.1572969658656; Tue, 05 Nov 2019 08:00:58 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id w8sm26805133wrr.44.2019.11.05.08.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 08:00:57 -0800 (PST) From: Chuhong Yuan Cc: Alessandro Zummo , Alexandre Belloni , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH v2] rtc: brcmstb-waketimer: add missed clk_disable_unprepare Date: Wed, 6 Nov 2019 00:00:43 +0800 Message-Id: <20191105160043.20018-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. Fixes: c4f07ecee22e ("rtc: brcmstb-waketimer: Add Broadcom STB wake-timer") Signed-off-by: Chuhong Yuan --- Changes in v2: - Remove the check for timer->clk and add fixes tag. drivers/rtc/rtc-brcmstb-waketimer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c index 3e9800f9878a..82d2ab0b3e9c 100644 --- a/drivers/rtc/rtc-brcmstb-waketimer.c +++ b/drivers/rtc/rtc-brcmstb-waketimer.c @@ -277,6 +277,7 @@ static int brcmstb_waketmr_remove(struct platform_device *pdev) struct brcmstb_waketmr *timer = dev_get_drvdata(&pdev->dev); unregister_reboot_notifier(&timer->reboot_notifier); + clk_disable_unprepare(timer->clk); return 0; } -- 2.23.0