summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-06-11 23:59:44 -0400
committerJeff Garzik <jeff@garzik.org>2006-06-11 23:59:44 -0400
commit39b07ce6d9f7cd4da8567baed844801e0aaa7b1a (patch)
treecbae130d51c51f9c5f37fafb5c48ff9d41cfd10b /drivers/scsi
parent233277cad6dacca6a8e53743641cf43ef7f37c4a (diff)
libata: more verbose request_irq() failure
Suggested by Jarek P.
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/libata-core.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 76b633a2f30..51b3a0ddb23 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -5293,6 +5293,7 @@ int ata_device_add(const struct ata_probe_ent *ent)
unsigned int count = 0, i;
struct device *dev = ent->dev;
struct ata_host_set *host_set;
+ int rc;
DPRINTK("ENTER\n");
/* alloc a container for our list of ATA ports (buses) */
@@ -5344,9 +5345,13 @@ int ata_device_add(const struct ata_probe_ent *ent)
goto err_free_ret;
/* obtain irq, that is shared between channels */
- if (request_irq(ent->irq, ent->port_ops->irq_handler, ent->irq_flags,
- DRV_NAME, host_set))
+ rc = request_irq(ent->irq, ent->port_ops->irq_handler, ent->irq_flags,
+ DRV_NAME, host_set);
+ if (rc) {
+ dev_printk(KERN_ERR, dev, "irq %lu request failed: %d\n",
+ ent->irq, rc);
goto err_out;
+ }
/* perform each probe synchronously */
DPRINTK("probe begin\n");