From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wright Subject: Re: [PATCH] xen: remove driver_data direct access of struct device from more drivers Date: Mon, 4 May 2009 13:47:05 -0700 Message-ID: <20090504204705.GS3036@sequoia.sous-sol.org> References: <20090504202206.GA23289@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20090504202206.GA23289@kroah.com> 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: Greg Kroah-Hartman Cc: Chris Wright , virtualization@lists.osdl.org, xen-devel@lists.xensource.com, Greg KH List-Id: virtualization@lists.linuxfoundation.org * 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