uml: remove driver_data direct access of struct device
commit8691b97b99d8b0ba7427afde1a50695cc4112938
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 4 May 2009 19:40:54 +0000 (4 12:40 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:30:28 +0000 (15 21:30 -0700)
treeab55b4e8486bab2cad73bdd9c5f8f49ac979a27c
parent5888fd30ac70fa50f08979c46f9206d01ca6ad49
uml: remove driver_data direct access of struct device

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: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/um/drivers/net_kern.c
arch/um/drivers/ubd_kern.c