Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757330Ab0KJWsH (ORCPT ); Wed, 10 Nov 2010 17:48:07 -0500 Received: from www.tglx.de ([62.245.132.106]:35049 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757218Ab0KJWsE (ORCPT ); Wed, 10 Nov 2010 17:48:04 -0500 Date: Wed, 10 Nov 2010 23:47:09 +0100 (CET) From: Thomas Gleixner To: Greg KH cc: Grant Likely , Maciej Szmigiero , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Anton Vorontsov , Uwe Kleine-K?nig , Andrew Morton , Arnd Bergmann , Jonathan Cameron , Ben Nizette Subject: Re: [GPIO]implement sleeping GPIO chip removal In-Reply-To: <20101110224516.GA19567@suse.de> Message-ID: References: <4CD6F049.10102@o2.pl> <20101110050947.GC4110@angua.secretlab.ca> <4CDABA03.2050000@o2.pl> <4CDB0834.4080101@o2.pl> <20101110211540.GA7063@angua.secretlab.ca> <20101110224516.GA19567@suse.de> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 25 On Wed, 10 Nov 2010, Greg KH wrote: > On Wed, Nov 10, 2010 at 02:15:40PM -0700, Grant Likely wrote: > > On Wed, Nov 10, 2010 at 10:07:05PM +0100, Thomas Gleixner wrote: > > > If we see a shortcoming like this, we fix it and do not magically work > > > around it. > > > > +1 > > > > Thomas is right. kobject reference counting is the correct solution. > > Nack on this approach. > > Only use a kobject if you want to be in the sysfs hierarchy (which I > don't think you want to do here.) If you want proper reference > counting, use a 'struct kref' instead. Oops, yes. I always confuse those. Thanks for pointing it out - probably not the first time :) tglx -- 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/