From: Geert Uytterhoeven Date: Wed, 10 Jun 2009 04:38:53 +0000 (+0000) Subject: ps3: Use dev_[gs]et_drvdata() instead of direct access for system bus devices X-Git-Tag: v2.6.31-rc1~314^2~9 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=9f08e9db84c1e9234e07b9b595f5b2508c621823;p=net-next-2.6.git ps3: Use dev_[gs]et_drvdata() instead of direct access for system bus devices Signed-off-by: Geert Uytterhoeven Cc: Geoff Levand Acked-by: Geoff Levand Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/include/asm/ps3.h b/arch/powerpc/include/asm/ps3.h index b9e4987986d..dcd302f489f 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(). */