summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2002-10-08 08:32:06 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2002-10-08 08:32:06 +0000
commitaa1ca406d637a1eabbff272c0508bed5eb1147a1 (patch)
tree6e2bfbe5571e33fc986a7fc2e5609df4c58417c8 /linux-core
parenta653224403a9c85b1406697e725226e0d477042a (diff)
Fix error condition...
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c
index 945340c71..01604e750 100644
--- a/linux-core/drm_ioctl.c
+++ b/linux-core/drm_ioctl.c
@@ -48,7 +48,7 @@ int DRM(irq_busid)(struct inode *inode, struct file *filp,
p.irq = 0;
goto out;
}
- if (!pci_enable_device(dev)) {
+ if (pci_enable_device(dev) != 0) {
DRM_ERROR("pci_enable_device failed for %d:%d:%d\n",
p.busnum, p.devnum, p.funcnum);
p.irq = 0;