Thanks to Joe Perches for catching an error in my previous --- asic->irq_nr is unsigned. platform_get_irq() may return signed unnoticed Signed-off-by: Roel Kluin <12o3l@tiscali.nl> --- diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index f6f2d96..abd7ffc 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c @@ -300,10 +300,13 @@ static int asic3_irq_probe(struct platform_device *pdev) struct asic3 *asic = platform_get_drvdata(pdev); unsigned long clksel = 0; unsigned int irq, irq_base; + int ret; + + ret = platform_get_irq(pdev, 0); + if (ret < 0) + return ret; - asic->irq_nr = platform_get_irq(pdev, 0); - if (asic->irq_nr < 0) - return asic->irq_nr; + asic->irq_nr = ret; /* turn on clock to IRQ controller */ clksel |= CLOCK_SEL_CX; --
| Linus Torvalds | Linux 2.6.25-rc2 |
| Robin Lee Powell | NFS hang + umount -f: better behaviour requested. |
| David Woodhouse | Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor... |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Miles Bader | way to automatically add untracked files? |
| Jan-Benedict Glaw | Errors GITtifying GCC and Binutils |
| Andreas Hildebrandt | CVS-$Id:$ replacement in git? |
| Alexander Gladysh | [Q] Encrypted GIT? |
| Alex Thurlow | Router performance on OpenBSD and OpenBGPD |
| Karel Kulhavy | lookup option in /etc/resolv.conf ignored |
| Richard Stallman | Real men don't attack straw men |
| Sunnz | Can OpenBSD do what BusyBox does? |
| Julius Volz | [PATCH RFC 02/24] IPVS: Add genetlink interface implementation |
| Lennart Sorensen | Re: [PATCH 1/2] IPV4: remove addresses and routes when carrier is lost |
| Jussi Kivilinna | [PATCH 04/14] [rndis_host] Halt device if rndis_bind fails. |
| Lennert Buytenhek | Re: using software TSO on non-TSO capable netdevices |
