[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.1.10.0804221616280.2779@woody.linux-foundation.org>
Date: Tue, 22 Apr 2008 16:20:45 -0700 (PDT)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Jeff Garzik <jeff@...zik.org>
cc: Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>, rmk@....linux.org.uk
Subject: Re: [git patch] free_irq() fixes
On Tue, 22 Apr 2008, Jeff Garzik wrote:
>
> (note, for mwave I couldn't use pSettings, since that might fail the ambiguity
> test)
Ok, so using the pointer to inside a specific pSettings field is fine.
But can you also explain to me why that insane driver does this:
static irqreturn_t UartInterrupt(int irq, void *dev_id)
{
- int irqno = (int)(unsigned long) dev_id;
+ unsigned short *irqno = dev_id;
...
*irqno, dev_id);
instead of just ignoring "dev_id" entirely, and then just using that "irq"
argument directly?
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists