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

Mark Brown broonie at opensource.wolfsonmicro.com
Tue May 5 06:34:10 EST 2009


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>



More information about the Linuxppc-dev mailing list