diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-06-11 23:59:44 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-11 23:59:44 -0400 |
commit | 39b07ce6d9f7cd4da8567baed844801e0aaa7b1a (patch) | |
tree | cbae130d51c51f9c5f37fafb5c48ff9d41cfd10b | |
parent | 233277cad6dacca6a8e53743641cf43ef7f37c4a (diff) |
libata: more verbose request_irq() failure
Suggested by Jarek P.
-rw-r--r-- | drivers/scsi/libata-core.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 76b633a2f304..51b3a0ddb238 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) | |||
5293 | unsigned int count = 0, i; | 5293 | unsigned int count = 0, i; |
5294 | struct device *dev = ent->dev; | 5294 | struct device *dev = ent->dev; |
5295 | struct ata_host_set *host_set; | 5295 | struct ata_host_set *host_set; |
5296 | int rc; | ||
5296 | 5297 | ||
5297 | DPRINTK("ENTER\n"); | 5298 | DPRINTK("ENTER\n"); |
5298 | /* alloc a container for our list of ATA ports (buses) */ | 5299 | /* alloc a container for our list of ATA ports (buses) */ |
@@ -5344,9 +5345,13 @@ int ata_device_add(const struct ata_probe_ent *ent) | |||
5344 | goto err_free_ret; | 5345 | goto err_free_ret; |
5345 | 5346 | ||
5346 | /* obtain irq, that is shared between channels */ | 5347 | /* obtain irq, that is shared between channels */ |
5347 | if (request_irq(ent->irq, ent->port_ops->irq_handler, ent->irq_flags, | 5348 | rc = request_irq(ent->irq, ent->port_ops->irq_handler, ent->irq_flags, |
5348 | DRV_NAME, host_set)) | 5349 | DRV_NAME, host_set); |
5350 | if (rc) { | ||
5351 | dev_printk(KERN_ERR, dev, "irq %lu request failed: %d\n", | ||
5352 | ent->irq, rc); | ||
5349 | goto err_out; | 5353 | goto err_out; |
5354 | } | ||
5350 | 5355 | ||
5351 | /* perform each probe synchronously */ | 5356 | /* perform each probe synchronously */ |
5352 | DPRINTK("probe begin\n"); | 5357 | DPRINTK("probe begin\n"); |