block/ps3: remove driver_data direct access of struct device
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 10 Jun 2009 04:38:52 +0000 (04:38 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jun 2009 06:47:23 +0000 (16:47 +1000)
commit6dee2c87ebbe5d7ce8c4c163966a0bd9c02c75ef
treed3ba06ad73c80fb9fccd9c0a0b590f5cc6bec6d4
parent1bd9784f5ebb5b1b5a1efb8302d7b57c6483e2e6
block/ps3: 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.

[Geert: Use ps3_system_bus_[gs]et_driver_data() for ps3_system_bus_device]

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/block/ps3disk.c
drivers/block/ps3vram.c