Change the logic around to match ati_pcigart.

MFC after:	3 days
This commit is contained in:
Robert Noland 2009-03-17 03:36:24 +00:00
parent 162e0ab8c1
commit b2a9095767

View File

@ -174,7 +174,6 @@ int r600_page_table_init(struct drm_device *dev)
if (entry->busaddr[i] == 0) {
DRM_ERROR("unable to map PCIGART pages!\n");
r600_page_table_cleanup(dev, gart_info);
ret = -EINVAL;
goto done;
}
#endif
@ -193,6 +192,7 @@ int r600_page_table_init(struct drm_device *dev)
entry_addr += ATI_PCIGART_PAGE_SIZE;
}
}
ret = 1;
#ifdef __linux__
done:
#endif
@ -2100,7 +2100,7 @@ int r600_do_init_cp(struct drm_device *dev, drm_radeon_init_t *init,
dev_priv->gart_info.addr,
dev_priv->pcigart_offset);
if (r600_page_table_init(dev)) {
if (!r600_page_table_init(dev)) {
DRM_ERROR("Failed to init GART table\n");
r600_do_cleanup_cp(dev);
return -EINVAL;