From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759286Ab2AFXpQ (ORCPT ); Fri, 6 Jan 2012 18:45:16 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:41101 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758693Ab2AFXpO (ORCPT ); Fri, 6 Jan 2012 18:45:14 -0500 Date: Fri, 6 Jan 2012 23:44:45 +0000 From: Russell King - ARM Linux To: Mark Brown Cc: Greg KH , Frank Mandarino , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: Public ridicule due to sound/soc/soc-core.c abuse of the driver model Message-ID: <20120106234445.GC13857@n2100.arm.linux.org.uk> References: <20120106194052.GA7781@kroah.com> <20120106201458.GF2893@opensource.wolfsonmicro.com> <20120106205036.GB13857@n2100.arm.linux.org.uk> <20120106234135.GH2893@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120106234135.GH2893@opensource.wolfsonmicro.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 06, 2012 at 03:41:39PM -0800, Mark Brown wrote: > This only helps this specific device model bit of things, if anything is > still actually holding a reference to the device and tries to use it > after we tore away the resource underneath it we'll still explode (never > mind the fact that we're backing this stuff up with some global pointers > to other devices which may or may not actually be there...). Err what? Explain showing the code where you think this is the case with the patch I proposed please.