Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965506AbbEMTpY (ORCPT ); Wed, 13 May 2015 15:45:24 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48697 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965064AbbEMTpO (ORCPT ); Wed, 13 May 2015 15:45:14 -0400 Message-ID: <5553A9C8.2070701@codeaurora.org> Date: Wed, 13 May 2015 12:45:12 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?windows-1252?Q?Uwe_Kleine-K=F6nig?= CC: Sascha Hauer , Mike Turquette , kernel@pengutronix.de, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: Automatic clock disabling on clk_put() References: <20150511060129.GG6325@pengutronix.de> <55528B84.5050700@codeaurora.org> <20150513064550.GE28888@pengutronix.de> In-Reply-To: <20150513064550.GE28888@pengutronix.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 806 Lines: 21 On 05/12/15 23:45, Uwe Kleine-K?nig wrote: > >> that hard to call clk_disable_unprepare() on a clock at the end of an >> error path? Maybe you could add a devm_clk_get_prepare_enable() that >> does what you want and then call clk_disable_unprepare on the exit path? > You mean clk_disable_unprepare is called in the same function that calls > clk_put I assume such that you don't have to do anything in the exit > path. > Yes that's what I mean. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/