diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_bufs.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_drv.h | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_drv.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/savage/savage_bci.c | 8 |
5 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c index 12715d3c078d..fab899eec051 100644 --- a/drivers/gpu/drm/drm_bufs.c +++ b/drivers/gpu/drm/drm_bufs.c | |||
@@ -36,13 +36,13 @@ | |||
36 | #include <linux/vmalloc.h> | 36 | #include <linux/vmalloc.h> |
37 | #include "drmP.h" | 37 | #include "drmP.h" |
38 | 38 | ||
39 | unsigned long drm_get_resource_start(struct drm_device *dev, unsigned int resource) | 39 | resource_size_t drm_get_resource_start(struct drm_device *dev, unsigned int resource) |
40 | { | 40 | { |
41 | return pci_resource_start(dev->pdev, resource); | 41 | return pci_resource_start(dev->pdev, resource); |
42 | } | 42 | } |
43 | EXPORT_SYMBOL(drm_get_resource_start); | 43 | EXPORT_SYMBOL(drm_get_resource_start); |
44 | 44 | ||
45 | unsigned long drm_get_resource_len(struct drm_device *dev, unsigned int resource) | 45 | resource_size_t drm_get_resource_len(struct drm_device *dev, unsigned int resource) |
46 | { | 46 | { |
47 | return pci_resource_len(dev->pdev, resource); | 47 | return pci_resource_len(dev->pdev, resource); |
48 | } | 48 | } |
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 6d21b9e48b89..4d9f5c6818ca 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -1057,7 +1057,7 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master) | |||
1057 | int i915_driver_load(struct drm_device *dev, unsigned long flags) | 1057 | int i915_driver_load(struct drm_device *dev, unsigned long flags) |
1058 | { | 1058 | { |
1059 | struct drm_i915_private *dev_priv = dev->dev_private; | 1059 | struct drm_i915_private *dev_priv = dev->dev_private; |
1060 | unsigned long base, size; | 1060 | resource_size_t base, size; |
1061 | int ret = 0, mmio_bar = IS_I9XX(dev) ? 0 : 1; | 1061 | int ret = 0, mmio_bar = IS_I9XX(dev) ? 0 : 1; |
1062 | 1062 | ||
1063 | /* i915 has 4 more counters */ | 1063 | /* i915 has 4 more counters */ |
diff --git a/drivers/gpu/drm/mga/mga_drv.h b/drivers/gpu/drm/mga/mga_drv.h index 88257c276eb9..6bf4de990325 100644 --- a/drivers/gpu/drm/mga/mga_drv.h +++ b/drivers/gpu/drm/mga/mga_drv.h | |||
@@ -113,8 +113,8 @@ typedef struct drm_mga_private { | |||
113 | * \sa drm_mga_private_t::mmio | 113 | * \sa drm_mga_private_t::mmio |
114 | */ | 114 | */ |
115 | /*@{ */ | 115 | /*@{ */ |
116 | u32 mmio_base; /**< Bus address of base of MMIO. */ | 116 | resource_size_t mmio_base; /**< Bus address of base of MMIO. */ |
117 | u32 mmio_size; /**< Size of the MMIO region. */ | 117 | resource_size_t mmio_size; /**< Size of the MMIO region. */ |
118 | /*@} */ | 118 | /*@} */ |
119 | 119 | ||
120 | u32 clear_cmd; | 120 | u32 clear_cmd; |
diff --git a/drivers/gpu/drm/radeon/radeon_drv.h b/drivers/gpu/drm/radeon/radeon_drv.h index 490bc7ceef60..c608e22f73f9 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.h +++ b/drivers/gpu/drm/radeon/radeon_drv.h | |||
@@ -316,7 +316,7 @@ typedef struct drm_radeon_private { | |||
316 | 316 | ||
317 | /* starting from here on, data is preserved accross an open */ | 317 | /* starting from here on, data is preserved accross an open */ |
318 | uint32_t flags; /* see radeon_chip_flags */ | 318 | uint32_t flags; /* see radeon_chip_flags */ |
319 | unsigned long fb_aper_offset; | 319 | resource_size_t fb_aper_offset; |
320 | 320 | ||
321 | int num_gb_pipes; | 321 | int num_gb_pipes; |
322 | int track_flush; | 322 | int track_flush; |
diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c index d465b2f9c1cd..456cd040f31a 100644 --- a/drivers/gpu/drm/savage/savage_bci.c +++ b/drivers/gpu/drm/savage/savage_bci.c | |||
@@ -599,8 +599,8 @@ int savage_driver_firstopen(struct drm_device *dev) | |||
599 | drm_mtrr_add(dev_priv->mtrr[2].base, | 599 | drm_mtrr_add(dev_priv->mtrr[2].base, |
600 | dev_priv->mtrr[2].size, DRM_MTRR_WC); | 600 | dev_priv->mtrr[2].size, DRM_MTRR_WC); |
601 | } else { | 601 | } else { |
602 | DRM_ERROR("strange pci_resource_len %08lx\n", | 602 | DRM_ERROR("strange pci_resource_len %08llx\n", |
603 | drm_get_resource_len(dev, 0)); | 603 | (unsigned long long)drm_get_resource_len(dev, 0)); |
604 | } | 604 | } |
605 | } else if (dev_priv->chipset != S3_SUPERSAVAGE && | 605 | } else if (dev_priv->chipset != S3_SUPERSAVAGE && |
606 | dev_priv->chipset != S3_SAVAGE2000) { | 606 | dev_priv->chipset != S3_SAVAGE2000) { |
@@ -620,8 +620,8 @@ int savage_driver_firstopen(struct drm_device *dev) | |||
620 | drm_mtrr_add(dev_priv->mtrr[0].base, | 620 | drm_mtrr_add(dev_priv->mtrr[0].base, |
621 | dev_priv->mtrr[0].size, DRM_MTRR_WC); | 621 | dev_priv->mtrr[0].size, DRM_MTRR_WC); |
622 | } else { | 622 | } else { |
623 | DRM_ERROR("strange pci_resource_len %08lx\n", | 623 | DRM_ERROR("strange pci_resource_len %08llx\n", |
624 | drm_get_resource_len(dev, 1)); | 624 | (unsigned long long)drm_get_resource_len(dev, 1)); |
625 | } | 625 | } |
626 | } else { | 626 | } else { |
627 | mmio_base = drm_get_resource_start(dev, 0); | 627 | mmio_base = drm_get_resource_start(dev, 0); |