summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/radeon_cp.c')
-rw-r--r--sys/dev/pci/drm/radeon_cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_cp.c b/sys/dev/pci/drm/radeon_cp.c
index c894ade0e57..f6c085fb5b5 100644
--- a/sys/dev/pci/drm/radeon_cp.c
+++ b/sys/dev/pci/drm/radeon_cp.c
@@ -1259,7 +1259,7 @@ radeon_do_init_cp(struct drm_device *dev, drm_radeon_init_t *init)
}
}
- if (!drm_ati_pcigart_init(dev, &dev_priv->gart_info)) {
+ if (drm_ati_pcigart_init(dev, &dev_priv->gart_info)) {
DRM_ERROR("failed to init PCI GART!\n");
radeon_do_cleanup_cp(dev);
return ENOMEM;
@@ -1311,7 +1311,7 @@ radeon_do_cleanup_cp(struct drm_device *dev)
if (dev_priv->gart_info.bus_addr) {
/* Turn off PCI GART */
radeon_set_pcigart(dev_priv, 0);
- if (!drm_ati_pcigart_cleanup(dev, &dev_priv->gart_info))
+ if (drm_ati_pcigart_cleanup(dev, &dev_priv->gart_info))
DRM_ERROR("failed to cleanup PCI GART!\n");
}