|
@@ -110,8 +110,7 @@ static inline void *agp_remap(unsigned long offset, unsigned long size,
|
|
|
|
|
|
void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev)
|
|
|
{
|
|
|
- if (drm_core_has_AGP(dev) &&
|
|
|
- dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
|
|
|
+ if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
|
|
|
map->handle = agp_remap(map->offset, map->size, dev);
|
|
|
else
|
|
|
map->handle = ioremap(map->offset, map->size);
|
|
@@ -120,8 +119,7 @@ EXPORT_SYMBOL(drm_core_ioremap);
|
|
|
|
|
|
void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev)
|
|
|
{
|
|
|
- if (drm_core_has_AGP(dev) &&
|
|
|
- dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
|
|
|
+ if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
|
|
|
map->handle = agp_remap(map->offset, map->size, dev);
|
|
|
else
|
|
|
map->handle = ioremap_wc(map->offset, map->size);
|
|
@@ -133,8 +131,7 @@ void drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev)
|
|
|
if (!map->handle || !map->size)
|
|
|
return;
|
|
|
|
|
|
- if (drm_core_has_AGP(dev) &&
|
|
|
- dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
|
|
|
+ if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
|
|
|
vunmap(map->handle);
|
|
|
else
|
|
|
iounmap(map->handle);
|