summaryrefslogtreecommitdiff
path: root/linux-core/xgi_pcie.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-07-26 17:01:16 -0700
committerIan Romanick <idr@us.ibm.com>2007-07-26 17:01:16 -0700
commitc37ed9eca57a42b98cc67ca98dbf5135f5ab7aba (patch)
tree9ed022851b7027974a259f66dde8bbe98704fe1b /linux-core/xgi_pcie.c
parentb89cc0346500d9875d4acebc611db8f9ee3463f7 (diff)
Eliminate use of DRM_ERR.
Diffstat (limited to 'linux-core/xgi_pcie.c')
-rw-r--r--linux-core/xgi_pcie.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index dc5a50b8..4c369a2a 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -85,7 +85,7 @@ static int xgi_pcie_lut_init(struct xgi_info * info)
DMA_31BIT_MASK);
if (info->lut_handle == NULL) {
DRM_ERROR("cannot allocate PCIE lut page!\n");
- return DRM_ERR(ENOMEM);
+ return -ENOMEM;
}
lut = info->lut_handle->vaddr;
@@ -97,7 +97,7 @@ static int xgi_pcie_lut_init(struct xgi_info * info)
DMA_BIDIRECTIONAL);
if (dma_mapping_error(info->dev->sg->busaddr[i])) {
DRM_ERROR("cannot map GART backing store for DMA!\n");
- return DRM_ERR(-(info->dev->sg->busaddr[i]));
+ return info->dev->sg->busaddr[i];
}
lut[i] = info->dev->sg->busaddr[i];
@@ -184,7 +184,7 @@ int xgi_pcie_alloc(struct xgi_info * info, struct xgi_mem_alloc * alloc,
alloc->location = XGI_MEMLOC_INVALID;
alloc->size = 0;
DRM_ERROR("PCIE RAM allocation failed\n");
- return DRM_ERR(ENOMEM);
+ return -ENOMEM;
} else {
DRM_INFO("PCIE RAM allocation succeeded: offset = 0x%lx\n",
block->offset);
@@ -325,7 +325,7 @@ int xgi_test_rwinkernel_ioctl(DRM_IOCTL_ARGS)
DRM_INFO("input GE HW addr is 0x%x\n", address);
if (address == 0) {
- return DRM_ERR(EFAULT);
+ return -EFAULT;
}
virtaddr = (u32 *)xgi_find_pcie_virt(info, address);
@@ -337,7 +337,7 @@ int xgi_test_rwinkernel_ioctl(DRM_IOCTL_ARGS)
*virtaddr = 0x00f00fff;
DRM_INFO("modified [virtaddr] = 0x%x\n", *virtaddr);
} else {
- return DRM_ERR(EFAULT);
+ return -EFAULT;
}
return 0;