diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 17:41:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 17:41:00 -0400 |
commit | ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc (patch) | |
tree | 32d5f592be4222f0d6a8a05fcbc1c2eaed729499 /drivers/ata/libata-core.c | |
parent | 1f9bd4c96a8e918a86e083706e0d3eb7f030b9a3 (diff) | |
parent | bda3028813bd07f34f30288a492fbf6f7b8712dd (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
[libata] Don't use old-EH ->eng_timeout() hook when not needed
[libata] sata_mv: fix oops by filling in missing hook
[libata] One more s/15/ATA_SECONDARY_IRQ/ substitution
[libata] pata_serverworks: fill in ->irq_clear hook
[PATCH] pata_serverworks: correct PCI ID in cable detection table
[PATCH] libata-sff: use our IRQ defines
[PATCH] libata-eh: Remove layering violation and duplication when handling absent ports
[PATCH] libata: tighten rules for legacy dependancies
[PATCH] libata: refuse to register IRQless ports
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 753b0152afd1..b4abd6850367 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -5453,6 +5453,11 @@ int ata_device_add(const struct ata_probe_ent *ent) | |||
5453 | int rc; | 5453 | int rc; |
5454 | 5454 | ||
5455 | DPRINTK("ENTER\n"); | 5455 | DPRINTK("ENTER\n"); |
5456 | |||
5457 | if (ent->irq == 0) { | ||
5458 | dev_printk(KERN_ERR, dev, "is not available: No interrupt assigned.\n"); | ||
5459 | return 0; | ||
5460 | } | ||
5456 | /* alloc a container for our list of ATA ports (buses) */ | 5461 | /* alloc a container for our list of ATA ports (buses) */ |
5457 | host = kzalloc(sizeof(struct ata_host) + | 5462 | host = kzalloc(sizeof(struct ata_host) + |
5458 | (ent->n_ports * sizeof(void *)), GFP_KERNEL); | 5463 | (ent->n_ports * sizeof(void *)), GFP_KERNEL); |