Re: [PATCH] error missed ifndef CONFIG_HAVE_SPARSE_IRQ

From: Yinghai Lu
Date: Fri Sep 05 2008 - 13:03:57 EST


On Fri, Sep 5, 2008 at 7:46 AM, Ingo Molnar <mingo@xxxxxxx> wrote:
>
> * Dean Nelson <dcn@xxxxxxx> wrote:
>
>> An error return from create_irq_nr() is 0, but an error return from
>> create_irq() is -1.
>>
>> Signed-off-by: Dean Nelson <dcn@xxxxxxx>
>
> applied to tip/irq/sparseirq - thanks Dean!
>
need to change irq to int too

diff --git a/drivers/pci/htirq.c b/drivers/pci/htirq.c
index 7c5aef1..468115d 100644
--- a/drivers/pci/htirq.c
+++ b/drivers/pci/htirq.c
@@ -109,7 +109,7 @@ int __ht_create_irq(struct pci_dev *dev, int idx,
ht_irq_update_t *update)
u32 data;
int max_irq;
int pos;
- unsigned int irq;
+ int irq;
unsigned int irq_want;

pos = pci_find_ht_capability(dev, HT_CAPTYPE_IRQ);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/