login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
23
Re: [PATCH] spi_mpc83xx: test below 0 on unsigned irq in mpc83xx_spi_probe()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Kumar Gala <galak@...>
To: Roel Kluin <12o3l@...>
Cc: linuxppc-dev@ozlabs.org list <linuxppc-dev@...>, lkml <linux-kernel@...>, <spi-devel-general@...>
Subject:
Re: [PATCH] spi_mpc83xx: test below 0 on unsigned irq in mpc83xx_spi_probe()
Date: Wednesday, April 23, 2008 - 4:39 pm
On Apr 23, 2008, at 3:19 PM, Roel Kluin wrote:
quoted text
> mpc83xx_spi->irq is unsigned, so the test fails > > Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
you should copy the linux-spi list on such patches. - k
quoted text
> > --- > diff --git a/drivers/spi/spi_mpc83xx.c b/drivers/spi/spi_mpc83xx.c > index be15a62..033fd51 100644 > --- a/drivers/spi/spi_mpc83xx.c > +++ b/drivers/spi/spi_mpc83xx.c > @@ -454,12 +454,12 @@ static int __init mpc83xx_spi_probe(struct > platform_device *dev) > goto put_master; > } > > - mpc83xx_spi->irq = platform_get_irq(dev, 0); > - > - if (mpc83xx_spi->irq < 0) { > - ret = -ENXIO; > + ret = platform_get_irq(dev, 0); > + if (ret < 0) > goto unmap_io; > - } > + > + mpc83xx_spi->irq = ret; > + ret = 0; > > /* Register for SPI Interrupt */ > ret = request_irq(mpc83xx_spi->irq, mpc83xx_spi_irq,
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] spi_mpc83xx: test below 0 on unsigned irq in mpc83xx...
, Roel Kluin
, (Wed Apr 23, 4:19 pm)
[PATCH 2/2] xilinx_spi: test below 0 on unsigned irq in xili...
, Roel Kluin
, (Wed Apr 23, 4:55 pm)
[PATCH 2/2 v2] xilinx_spi: test below 0 on unsigned irq in x...
, Roel Kluin
, (Thu Apr 24, 3:35 am)
Re: [PATCH] spi_mpc83xx: test below 0 on unsigned irq in mpc...
, Kumar Gala
, (Wed Apr 23, 4:39 pm)
Re: [spi-devel-general] [PATCH] spi_mpc83xx: test below 0 on...
, David Brownell
, (Wed Apr 30, 6:12 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Martin Michlmayr
Network slowdown due to CFS
git
:
linux-netdev
:
Paweł Staszewski
rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
800 guests
online.
Online users
mator
vv_ivango
muebcass908
Syndicate