summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/ps3.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2009-06-10 04:38:53 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-15 16:47:24 +1000
commit9f08e9db84c1e9234e07b9b595f5b2508c621823 (patch)
tree8f8b19f90889355fe6ac6eadd062b6c6ba4904a4 /arch/powerpc/include/asm/ps3.h
parent6dee2c87ebbe5d7ce8c4c163966a0bd9c02c75ef (diff)
downloadlinux-9f08e9db84c1e9234e07b9b595f5b2508c621823.tar.gz
linux-9f08e9db84c1e9234e07b9b595f5b2508c621823.tar.bz2
linux-9f08e9db84c1e9234e07b9b595f5b2508c621823.zip
ps3: Use dev_[gs]et_drvdata() instead of direct access for system bus devices
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Cc: Geoff Levand <geoffrey.levand@am.sony.com> Acked-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/ps3.h')
-rw-r--r--arch/powerpc/include/asm/ps3.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/ps3.h b/arch/powerpc/include/asm/ps3.h
index b9e4987986dd..dcd302f489f6 100644
--- a/arch/powerpc/include/asm/ps3.h
+++ b/arch/powerpc/include/asm/ps3.h
@@ -421,12 +421,12 @@ static inline struct ps3_system_bus_driver *
static inline void ps3_system_bus_set_driver_data(
struct ps3_system_bus_device *dev, void *data)
{
- dev->core.driver_data = data;
+ dev_set_drvdata(&dev->core, data);
}
static inline void *ps3_system_bus_get_driver_data(
struct ps3_system_bus_device *dev)
{
- return dev->core.driver_data;
+ return dev_get_drvdata(&dev->core);
}
/* These two need global scope for get_dma_ops(). */