From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [PATCH] xen: remove driver_data direct access of struct device from more drivers Date: Mon, 4 May 2009 13:52:40 -0700 Message-ID: <20090504205240.GA25593@suse.de> References: <20090504202206.GA23289@kroah.com> <20090504204705.GS3036@sequoia.sous-sol.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20090504204705.GS3036@sequoia.sous-sol.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Chris Wright Cc: virtualization@lists.osdl.org, xen-devel@lists.xensource.com, Greg KH List-Id: virtualization@lists.linuxfoundation.org On Mon, May 04, 2009 at 01:47:05PM -0700, Chris Wright wrote: > * Greg Kroah-Hartman (gregkh@suse.de) 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: xen-devel@lists.xensource.com > > Cc: virtualization@lists.osdl.org > > Cc: Chris Wright > > Cc: Jeremy Fitzhardinge > > Signed-off-by: Greg Kroah-Hartman > > Acked-by: Chris Wright thanks, I'll go add it. greg k-h