Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Mon, 4 May 2009
 13:05:45 -0700
Received: from psmtp.com ([64.18.0.99]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Mon, 4 May 2009 13:05:44 -0700
Received: from source ([213.58.128.207]) by exprod5mx276.postini.com
 ([64.18.4.10]) with SMTP;	Mon, 04 May 2009 15:05:44 CDT
Received: from localhost.localdomain ([127.0.0.1]:59935 "EHLO
	ftp.linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by ftp.linux-mips.org	with
 ESMTP id S20023392AbZEDUFf (ORCPT	<rfc822;andy.sharp@onstor.com>); Mon, 4 May
 2009 21:05:35 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 04 May 2009 21:05:18
 +0100 (BST)
Received: from kroah.org ([198.145.64.141]:37335 "EHLO coco.kroah.org"
	rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP	id
 S20023350AbZEDUFL (ORCPT <rfc822;linux-mips@linux-mips.org>);	Mon, 4 May 2009
 21:05:11 +0100
Received: from localhost (c-76-105-230-205.hsd1.or.comcast.net
 [76.105.230.205])	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)	by coco.kroah.org (Postfix) with ESMTPSA id
 1472448FB3;	Mon,  4 May 2009 13:05:08 -0700 (PDT)
From: Greg Kroah-Hartman <gregkh@suse.de>
To: Ralf Baechle <ralf@linux-mips.org>
CC: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>, Greg KH
	<greg@kroah.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Mon, 4 May 2009 13:01:17 -0700
Subject: [PATCH] mips: remove driver_data direct access of struct device
Thread-Topic: [PATCH] mips: remove driver_data direct access of struct device
Thread-Index: AcnM87XMukY2MrJLScePWV/mg5qnBw==
Message-ID: <20090504200117.GA22829@kroah.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 04 May 2009 20:05:44.0924 (UTC)
 FILETIME=[B565D9C0:01C9CCF3]
x-ems-stamp: AEx4bbRQeuQrdXLqfu4OoQ==
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
user-agent: Mutt/1.5.19 (2009-01-05)
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-neptune: 1/1/1.00/94
x-pstn-levels: (S:69.17188/99.90000 CV: 7.8455 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-list: linux-mips
x-archive-position: 22614
x-ecartis-version: Ecartis v1.0.0
x-original-sender: gregkh@suse.de
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

From: Greg Kroah-Hartman <gregkh@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: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 arch/mips/sni/eisa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/mips/sni/eisa.c
+++ b/arch/mips/sni/eisa.c
@@ -38,7 +38,7 @@ int __init sni_eisa_root_init(void)
 	if (!r)
 		return r;
=20
-	eisa_root_dev.dev.driver_data =3D &eisa_bus_root;
+	dev_set_drvdata(&eisa_root_dev.dev, &eisa_bus_root);
=20
 	if (eisa_root_register(&eisa_bus_root)) {
 		/* A real bridge may have been registered before

