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/i915/i915_dma.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/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 2a6b5de5ae5d..9fe2d08d9e9d 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -1429,7 +1429,7 @@ static int i915_load_modeset_init(struct drm_device *dev, | |||
1429 | int fb_bar = IS_I9XX(dev) ? 2 : 0; | 1429 | int fb_bar = IS_I9XX(dev) ? 2 : 0; |
1430 | int ret = 0; | 1430 | int ret = 0; |
1431 | 1431 | ||
1432 | dev->mode_config.fb_base = drm_get_resource_start(dev, fb_bar) & | 1432 | dev->mode_config.fb_base = pci_resource_start(dev->pdev, fb_bar) & |
1433 | 0xff000000; | 1433 | 0xff000000; |
1434 | 1434 | ||
1435 | /* Basic memrange allocator for stolen space (aka vram) */ | 1435 | /* Basic memrange allocator for stolen space (aka vram) */ |
@@ -1612,8 +1612,8 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) | |||
1612 | 1612 | ||
1613 | /* Add register map (needed for suspend/resume) */ | 1613 | /* Add register map (needed for suspend/resume) */ |
1614 | mmio_bar = IS_I9XX(dev) ? 0 : 1; | 1614 | mmio_bar = IS_I9XX(dev) ? 0 : 1; |
1615 | base = drm_get_resource_start(dev, mmio_bar); | 1615 | base = pci_resource_start(dev->pdev, mmio_bar); |
1616 | size = drm_get_resource_len(dev, mmio_bar); | 1616 | size = pci_resource_len(dev->pdev, mmio_bar); |
1617 | 1617 | ||
1618 | if (i915_get_bridge_dev(dev)) { | 1618 | if (i915_get_bridge_dev(dev)) { |
1619 | ret = -EIO; | 1619 | ret = -EIO; |