[PATCH] sound: remove driver_data direct access of struct device

Greg KH gregkh at suse.de
Tue May 5 06:39:37 EST 2009


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 <gregkh at suse.de>
> > 
> > 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 <tiwai at suse.de>
> 
> Acked-by: Mark Brown <broonie at opensource.wolfsonmicro.com>

Thanks, added it to the patch.

greg k-h



More information about the Linuxppc-dev mailing list