Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932607AbdHWTdI (ORCPT ); Wed, 23 Aug 2017 15:33:08 -0400 Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:31163 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932467AbdHWTdG (ORCPT ); Wed, 23 Aug 2017 15:33:06 -0400 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Wed, 23 Aug 2017 21:33:04 +0200 X-ME-IP: 90.55.206.157 From: Robert Jarzmik To: Alexandre Belloni Cc: linux-rtc@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: sa1100: fix unbalanced clk_prepare_enable/clk_disable_unprepare References: <20170821160038.22650-1-alexandre.belloni@free-electrons.com> X-URL: http://belgarath.falguerolles.org/ Date: Wed, 23 Aug 2017 21:33:01 +0200 Message-ID: <87bmn6qdua.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 502 Lines: 14 Alexandre Belloni writes: > In the error path of sa1100_rtc_open(), info->clk is disabled which will > happen again in sa1100_rtc_remove() when the module is removed whereas it > is only enabled once in sa1100_rtc_init(). > > Fixes: 0cc0c38e9139 ("drivers/rtc/rtc-sa1100.c: move clock enable/disable to probe/remove") > Signed-off-by: Alexandre Belloni Acked-by: Robert Jarzmik Cheers. -- Robert