]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ps3: Use dev_[gs]et_drvdata() instead of direct access for system bus devices
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Wed, 10 Jun 2009 04:38:53 +0000 (04:38 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jun 2009 06:47:24 +0000 (16:47 +1000)
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>
arch/powerpc/include/asm/ps3.h

index b9e4987986ddb13d3664b4ffa812b28e0e0b5569..dcd302f489f6897612955c16eb0768f21821a515 100644 (file)
@@ -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(). */