Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-05-02 Thread Jean Delvare
On Fri, 2 May 2008 13:19:44 -0400, Jon Smirl wrote: > I attached the diff file. I had forgot that I renamed the file so it > wasn't getting compiled. I compiled it this time. I've made too many > other changes to it to test this version on my current hardware. Applied, thanks. -- Jean Delvare __

Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-05-02 Thread Jon Smirl
I attached the diff file. I had forgot that I renamed the file so it wasn't getting compiled. I compiled it this time. I've made too many other changes to it to test this version on my current hardware. -- Jon Smirl [EMAIL PROTECTED] diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/

Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-05-02 Thread Jean Delvare
Hi Jon, On Fri, 2 May 2008 12:02:27 -0400, Jon Smirl wrote: > New version with your fix. > > diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c > index bbe787b..b141057 100644 > --- a/drivers/i2c/busses/i2c-mpc.c > +++ b/drivers/i2c/busses/i2c-mpc.c > @@ -99,7 +99,7 @@ stati

Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-05-02 Thread Jon Smirl
New version with your fix. diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c index bbe787b..b141057 100644 --- a/drivers/i2c/busses/i2c-mpc.c +++ b/drivers/i2c/busses/i2c-mpc.c @@ -99,7 +99,7 @@ static int i2c_wait(struct mpc_i2c *i2c, unsigned timeout, int writing)

Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-05-02 Thread Jean Delvare
Hi Jon, On Fri, 2 May 2008 10:23:01 -0400, Jon Smirl wrote: > On 2/19/08, Jean Delvare <[EMAIL PROTECTED]> wrote: > > > i2c->irq = platform_get_irq(pdev, 0); > > > - if (i2c->irq < 0) { > > > + if (i2c->irq < NO_IRQ) { > > > > > > I am skeptical about this one. Can platform_get_ir

Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-05-02 Thread Jon Smirl
On 2/19/08, Jean Delvare <[EMAIL PROTECTED]> wrote: > > i2c->irq = platform_get_irq(pdev, 0); > > - if (i2c->irq < 0) { > > + if (i2c->irq < NO_IRQ) { > > > I am skeptical about this one. Can platform_get_irq() really return > NO_IRQ? I thought that the IRQ resource would be plain

Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-04-25 Thread Jean Delvare
Hi Jon, On Tue, 19 Feb 2008 17:42:21 +0100, Jean Delvare wrote: > On Mon, 21 Jan 2008 15:07:40 -0500, Jon Smirl wrote: > > Alter the mpc i2c driver to use the NO_IRQ symbol instead of > > the constant zero when checking for valid interrupts. NO_IRQ=-1 > > on ppc and NO_IRQ=0 on powerpc so the chec

Re: [PATCH] mpc i2c driver, compare to NO_IRQ instead of zero

2008-02-19 Thread Jean Delvare
Hi Jon, On Mon, 21 Jan 2008 15:07:40 -0500, Jon Smirl wrote: > Alter the mpc i2c driver to use the NO_IRQ symbol instead of > the constant zero when checking for valid interrupts. NO_IRQ=-1 > on ppc and NO_IRQ=0 on powerpc so the checks against zero are > not correct. Using NO_IRQ sounds good, ju