diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2010-05-27 15:40:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-31 20:07:24 -0400 |
commit | 01d73a6967f12fe6c4bbde1834a9fe662264a2eb (patch) | |
tree | 32e4a3171cd371dfc037af52e181e6c8454a961b /drivers/gpu/drm/nouveau/nv40_graph.c | |
parent | cf22f20ade30f8c03955324aaf27b1049e182600 (diff) |
drm: Remove drm_resource wrappers
Remove the drm_resource wrappers and directly use the
actual PCI and/or platform functions in their place.
[airlied: fixup nouveau properly to build]
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv40_graph.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv40_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv40_graph.c b/drivers/gpu/drm/nouveau/nv40_graph.c index 704a25d04ac9..65b13b54c5ae 100644 --- a/drivers/gpu/drm/nouveau/nv40_graph.c +++ b/drivers/gpu/drm/nouveau/nv40_graph.c | |||
@@ -367,7 +367,7 @@ nv40_graph_init(struct drm_device *dev) | |||
367 | nv40_graph_set_region_tiling(dev, i, 0, 0, 0); | 367 | nv40_graph_set_region_tiling(dev, i, 0, 0, 0); |
368 | 368 | ||
369 | /* begin RAM config */ | 369 | /* begin RAM config */ |
370 | vramsz = drm_get_resource_len(dev, 0) - 1; | 370 | vramsz = pci_resource_len(dev->pdev, 0) - 1; |
371 | switch (dev_priv->chipset) { | 371 | switch (dev_priv->chipset) { |
372 | case 0x40: | 372 | case 0x40: |
373 | nv_wr32(dev, 0x4009A4, nv_rd32(dev, NV04_PFB_CFG0)); | 373 | nv_wr32(dev, 0x4009A4, nv_rd32(dev, NV04_PFB_CFG0)); |