From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx2.suse.de", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 9A426DDDFF for ; Tue, 5 May 2009 06:45:10 +1000 (EST) Date: Mon, 4 May 2009 13:39:37 -0700 From: Greg KH To: Mark Brown Subject: Re: [PATCH] sound: remove driver_data direct access of struct device Message-ID: <20090504203937.GA25362@suse.de> References: <20090504201936.GA23194@kroah.com> <20090504203410.GA29859@rakim.wolfsonmicro.main> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20090504203410.GA29859@rakim.wolfsonmicro.main> Cc: Takashi Iwai , Greg KH , Jaroslav Kysela , linuxppc-dev@ozlabs.org, Ian Molton , Philipp Zabel , Jean Delvare , Johannes Berg , Timur Tabi , Liam Girdwood List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, May 04, 2009 at 09:34:10PM +0100, Mark Brown wrote: > On Mon, May 04, 2009 at 01:19:36PM -0700, Greg Kroah-Hartman wrote: > > From: Greg Kroah-Hartman > > > > In the near future, the driver core is going to not allow direct access > > to the driver_data pointer in struct device. Instead, the functions > > dev_get_drvdata() and dev_set_drvdata() should be used. These functions > > have been around since the beginning, so are backwards compatible with > > all older kernel versions. > > > Cc: Takashi Iwai > > Acked-by: Mark Brown Thanks, added it to the patch. greg k-h