diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-01-18 14:52:10 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-01-18 14:52:10 +0000 |
commit | 93e8ee60d3ae6b9388639ab552c8c19cd8387e2e (patch) | |
tree | 0a92e43a42e3eb5db8cce33c95f2f095eb0068ee | |
parent | e2117d5487f8ebaa4b2a76ed8a4e4e1e74b745e3 (diff) |
cleanup assignment of pointer/integer.
-rw-r--r-- | linux/r128_pcigart.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/r128_pcigart.c b/linux/r128_pcigart.c index 54ca8f0e..d20f275a 100644 --- a/linux/r128_pcigart.c +++ b/linux/r128_pcigart.c @@ -89,7 +89,7 @@ int r128_pcigart_init( drm_device_t *dev ) drm_sg_mem_t *entry = dev->sg; unsigned long address; unsigned long pages; - u32 *pci_gart; + unsigned long *pci_gart; int i; DRM_INFO( "%s\n", __FUNCTION__ ); @@ -117,13 +117,14 @@ int r128_pcigart_init( drm_device_t *dev ) return -ENOMEM; } - dev_priv->pci_gart_page = dev_priv->phys_pci_gart_page = address; + dev_priv->phys_pci_gart_page = address; + dev_priv->pci_gart_page = (unsigned long *)address; DRM_INFO( "%s: phys=0x%08lx virt=%p\n", __FUNCTION__, dev_priv->phys_pci_gart_page, dev_priv->pci_gart_page ); - pci_gart = (u32 *)dev_priv->pci_gart_page; + pci_gart = (unsigned long *)dev_priv->pci_gart_page; for ( i = 0; i < 8192 ; i++) pci_gart[i] = 0; for ( i = 0 ; i < pages ; i++ ) { |