Re: [PATCH] hvcs: remove driver_data direct access of struct device
From: Stephen Rothwell
Date: Mon May 04 2009 - 19:49:22 EST
On Mon, 4 May 2009 12:58:01 -0700 Greg Kroah-Hartman <gregkh@xxxxxxx> wrote:
>
> From: Greg Kroah-Hartman <gregkh@xxxxxxx>
>
> 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: Paul Mackerras <paulus@xxxxxxxxx>
> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Cc: Roel Kluin <roel.kluin@xxxxxxxxx>
> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
Acked-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/
Attachment:
pgp00000.pgp
Description: PGP signature