aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/ps3fb.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2009-06-10 00:38:57 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-15 02:47:25 -0400
commitcd4a157d769311964717d5c7cfc0c34426d090b4 (patch)
treeabfabc1ff5acb4f69d51b8c44aa7a07bc11533ad /drivers/video/ps3fb.c
parent559dc87f50d062d881fed406efb76925aa1f30e7 (diff)
ps3fb: Use ps3_system_bus_[gs]et_drvdata() instead of direct access
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Cc: linux-fbdev-devel@lists.sourceforge.net Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/video/ps3fb.c')
-rw-r--r--drivers/video/ps3fb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c
index 1baa1c93a224..c0af638fe702 100644
--- a/drivers/video/ps3fb.c
+++ b/drivers/video/ps3fb.c
@@ -1166,7 +1166,7 @@ static int __devinit ps3fb_probe(struct ps3_system_bus_device *dev)
1166 if (retval < 0) 1166 if (retval < 0)
1167 goto err_fb_dealloc; 1167 goto err_fb_dealloc;
1168 1168
1169 dev->core.driver_data = info; 1169 ps3_system_bus_set_drvdata(dev, info);
1170 1170
1171 dev_info(info->device, "%s %s, using %u KiB of video memory\n", 1171 dev_info(info->device, "%s %s, using %u KiB of video memory\n",
1172 dev_driver_string(info->dev), dev_name(info->dev), 1172 dev_driver_string(info->dev), dev_name(info->dev),
@@ -1211,7 +1211,7 @@ err:
1211 1211
1212static int ps3fb_shutdown(struct ps3_system_bus_device *dev) 1212static int ps3fb_shutdown(struct ps3_system_bus_device *dev)
1213{ 1213{
1214 struct fb_info *info = dev->core.driver_data; 1214 struct fb_info *info = ps3_system_bus_get_drvdata(dev);
1215 u64 xdr_lpar = ps3_mm_phys_to_lpar(__pa(ps3fb_videomemory.address)); 1215 u64 xdr_lpar = ps3_mm_phys_to_lpar(__pa(ps3fb_videomemory.address));
1216 1216
1217 dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__); 1217 dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
@@ -1232,7 +1232,7 @@ static int ps3fb_shutdown(struct ps3_system_bus_device *dev)
1232 unregister_framebuffer(info); 1232 unregister_framebuffer(info);
1233 fb_dealloc_cmap(&info->cmap); 1233 fb_dealloc_cmap(&info->cmap);
1234 framebuffer_release(info); 1234 framebuffer_release(info);
1235 info = dev->core.driver_data = NULL; 1235 ps3_system_bus_set_drvdata(dev, NULL);
1236 } 1236 }
1237 iounmap((u8 __force __iomem *)ps3fb.dinfo); 1237 iounmap((u8 __force __iomem *)ps3fb.dinfo);
1238 lv1_gpu_fb_close(ps3fb.context_handle); 1238 lv1_gpu_fb_close(ps3fb.context_handle);