From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754196Ab2GaOLa (ORCPT ); Tue, 31 Jul 2012 10:11:30 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:38638 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070Ab2GaOL1 (ORCPT ); Tue, 31 Jul 2012 10:11:27 -0400 Date: Tue, 31 Jul 2012 15:11:25 +0100 From: Mark Brown To: Alex Courbot Cc: Thierry Reding , Stephen Warren , Simon Glass , Grant Likely , Rob Herring , Greg Kroah-Hartman , Arnd Bergmann , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , "devicetree-discuss@lists.ozlabs.org" Subject: Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences Message-ID: <20120731141125.GR4468@opensource.wolfsonmicro.com> References: <1343390750-3642-1-git-send-email-acourbot@nvidia.com> <1343390750-3642-2-git-send-email-acourbot@nvidia.com> <20120730113323.GA7303@avionic-0098.adnet.avionic-design.de> <5017AA87.2040503@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5017AA87.2040503@nvidia.com> X-Cookie: Give him an evasive answer. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 31, 2012 at 06:51:03PM +0900, Alex Courbot wrote: > 2) On cleanup, it cleans the resources that needs to be freed (i.e. > those that are not devm-handled). > 2) can certainly be removed either by enforcing use of devm, or by > doing reference counting. 1) seems more difficult to avoid - we need I'd just add devm_ for everything that's not got it.