summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct1xxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/wct1xxp.c')
-rw-r--r--drivers/dahdi/wct1xxp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dahdi/wct1xxp.c b/drivers/dahdi/wct1xxp.c
index 53abb63..3b0f5b9 100644
--- a/drivers/dahdi/wct1xxp.c
+++ b/drivers/dahdi/wct1xxp.c
@@ -1273,11 +1273,13 @@ static int __devinit t1xxp_init_one(struct pci_dev *pdev, const struct pci_devic
unsigned int *canary;
unsigned int x;
- if (!pci_enable_device(pdev)) {
+ if (pci_enable_device(pdev)) {
+ printk(KERN_ERR "%s: pci_enable_device failed\n", __FUNCTION__);
return -EIO;
}
if (!(wc = kmalloc(sizeof(*wc), GFP_KERNEL))) {
+ printk(KERN_ERR "%s: Failed allocation a wc\n", __FUNCTION__);
return -ENOMEM;
}