Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8472976ybl; Thu, 16 Jan 2020 17:33:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwwO5PBJCHe1U8WCLfR/3erfgtVJfRHijNfv8XVLb7FMLPs33WvOVK/9Xyyg+3kfjG+qIjq X-Received: by 2002:aca:1b01:: with SMTP id b1mr1619096oib.6.1579224794094; Thu, 16 Jan 2020 17:33:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579224794; cv=none; d=google.com; s=arc-20160816; b=MsDJ/7RVR3xux91IBMUD+JM9RPSXiw+kf+PoBfNXCvOAEklwWIJHQIi78zLFNjDLkT 0yVMmBJMxkCII+SJWqBhoQwZXV4ksXBuWsdve3tdwrzORgcpzXRseQQ1ytjst7wUfpNQ /OJm2F22XsLFj1fmM/Yyp9I88hhY83dhmfM/Qt5L4ULR8LjbuiuA14uUFhXfsUUIz1Pz U8dL3fMho5qRgRgq0ir6CODKLlDTP9LOxewSZc5iLJdDb07n4X29nYlmpL4cEtoiPU5J Z5VL0w1CGY6HbUiVROF5BYAq/U0DxLXGBe/pfQ3c9WA5uELLPhcmSEh5NTjKC+3E3vVe iUZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=c1sg2EX7iskXyeHEv51oRiT4b11Zi6Pk+Er6J40IT+Q=; b=eHWOVkaU/9egcEvfCMhQQuEJi+KiZXTyAh8ZqZFBh8K2he5MZx3nlcCASbk1tsTF9t gPos8+3ZUXT9DHJNBdi67lJiZR+Q9st+LPBzfwyfipy/ZajQenf17uBs5qpX4+hqCFAT frNNewkWsZN8Q1swehy5h/bvDwPiqB/HXXaJkonSFF1cMjipmHPKU0fghW9N4L86LIdx 3tLNd5tAR6pr80+MXCqlhmZNO+oIIAH1wdg+Laqcz+Fssf0EA05LXlOfoeN3728osaiF yTS1bulY8m7GLAbxFbZpBDJmEG19Lgf1nsu7ssE8c7apojCQQX1vrL/sfalhfAsNw4Xa I5OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C4BZmuHv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si13848768oiy.124.2020.01.16.17.33.02; Thu, 16 Jan 2020 17:33:14 -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=pass header.i=@kernel.org header.s=default header.b=C4BZmuHv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730336AbgAPX0p (ORCPT + 99 others); Thu, 16 Jan 2020 18:26:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:56706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388801AbgAPX0S (ORCPT ); Thu, 16 Jan 2020 18:26:18 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D67F820684; Thu, 16 Jan 2020 23:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579217178; bh=A6436PZoUeMYCaPwbbuffN8Sf6L/qwVP+r2XQSU7Uwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C4BZmuHvgubTJEIK05NTPiB41uRpzBqeKR/LqvDV8uzKDFhR86RI/M55Ygn1Of2v/ 54btpxESy2WfITZ1JBkFoK5Ykq6zLT0sWyS4gTjcbXp7AVViwaRRaQ+EtiUykQc/M5 +p5aKVX2W8Q7N85p6SirLRUV/iB8l5lR8F0dVWyY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chuhong Yuan , Florian Fainelli , Alexandre Belloni Subject: [PATCH 5.4 179/203] rtc: brcmstb-waketimer: add missed clk_disable_unprepare Date: Fri, 17 Jan 2020 00:18:16 +0100 Message-Id: <20200116231800.071360519@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116231745.218684830@linuxfoundation.org> References: <20200116231745.218684830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chuhong Yuan commit 94303f8930ed78aea0f189b703c9d79fff9555d7 upstream. 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 Acked-by: Florian Fainelli Link: https://lore.kernel.org/r/20191105160043.20018-1-hslester96@gmail.com Signed-off-by: Alexandre Belloni Signed-off-by: Greg Kroah-Hartman --- drivers/rtc/rtc-brcmstb-waketimer.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/rtc/rtc-brcmstb-waketimer.c +++ b/drivers/rtc/rtc-brcmstb-waketimer.c @@ -277,6 +277,7 @@ static int brcmstb_waketmr_remove(struct struct brcmstb_waketmr *timer = dev_get_drvdata(&pdev->dev); unregister_reboot_notifier(&timer->reboot_notifier); + clk_disable_unprepare(timer->clk); return 0; }