From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759552AbZEKVmB (ORCPT ); Mon, 11 May 2009 17:42:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753030AbZEKVlu (ORCPT ); Mon, 11 May 2009 17:41:50 -0400 Received: from kroah.org ([198.145.64.141]:60429 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbZEKVlt (ORCPT ); Mon, 11 May 2009 17:41:49 -0400 Date: Mon, 11 May 2009 14:05:47 -0700 From: Greg KH To: Arnd Bergmann Cc: Greg Kroah-Hartman , Benjamin Herrenschmidt , Stephen Rothwell , Paul Mackerras , Matthias Fuchs , linux-kernel@vger.kernel.org Subject: Re: [PATCH] of_serial: remove driver_data direct access of struct device Message-ID: <20090511210547.GB31999@kroah.com> References: <20090504201323.GA23069@kroah.com> <200905051300.18614.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200905051300.18614.arnd@arndb.de> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2009 at 01:00:17PM +0200, Arnd Bergmann wrote: > On Monday 04 May 2009, Greg Kroah-Hartman 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: Benjamin Herrenschmidt > > Cc: Arnd Bergmann > > Cc: Stephen Rothwell > > Cc: Paul Mackerras > > Cc: Matthias Fuchs > > Signed-off-by: Greg Kroah-Hartman > > Acked-by: Arnd Bergmann Thanks, I've added this to my original patch in my tree. greg k-h