aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_drv.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_drv.c
parentb89cc0346500d9875d4acebc611db8f9ee3463f7 (diff)
Eliminate use of DRM_ERR.
Diffstat (limited to 'linux-core/xgi_drv.c')
-rw-r--r--linux-core/xgi_drv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c
index 2c3384b0..ec87df0a 100644
--- a/linux-core/xgi_drv.c
+++ b/linux-core/xgi_drv.c
@@ -173,7 +173,7 @@ int xgi_bootstrap(DRM_IOCTL_ARGS)
if ((info->fb.base == 0) || (info->fb.size == 0)) {
DRM_ERROR("framebuffer appears to be wrong: 0x%lx 0x%x\n",
(unsigned long) info->fb.base, info->fb.size);
- return DRM_ERR(EINVAL);
+ return -EINVAL;
}
@@ -221,7 +221,7 @@ int xgi_bootstrap(DRM_IOCTL_ARGS)
maplist = drm_find_matching_map(dev, info->pcie_map);
if (maplist == NULL) {
DRM_ERROR("Could not find GART backing store map.\n");
- return DRM_ERR(EINVAL);
+ return -EINVAL;
}
bs.gart = *info->pcie_map;
@@ -303,7 +303,7 @@ int xgi_driver_load(struct drm_device *dev, unsigned long flags)
struct xgi_info *info = drm_alloc(sizeof(*info), DRM_MEM_DRIVER);
if (!info)
- return DRM_ERR(ENOMEM);
+ return -ENOMEM;
(void) memset(info, 0, sizeof(*info));
dev->dev_private = info;
@@ -322,7 +322,7 @@ int xgi_driver_load(struct drm_device *dev, unsigned long flags)
if ((info->mmio.base == 0) || (info->mmio.size == 0)) {
DRM_ERROR("mmio appears to be wrong: 0x%lx 0x%x\n",
(unsigned long) info->mmio.base, info->mmio.size);
- return DRM_ERR(EINVAL);
+ return -EINVAL;
}
@@ -339,7 +339,7 @@ int xgi_driver_load(struct drm_device *dev, unsigned long flags)
SLAB_HWCACHE_ALIGN,
NULL, NULL);
if (xgi_mem_block_cache == NULL) {
- return DRM_ERR(ENOMEM);
+ return -ENOMEM;
}