From: Ben Dooks <ben-linux@fluff.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH/RFC] platform_get_irq() return for no IRQ
Date: Wed, 20 Oct 2004 18:40:15 +0100 [thread overview]
Message-ID: <20041020174015.GA13087@fluff.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
in drivers/base/platform.c, platform_get_irq() returns 0 if
there is no IRQ found in the resources, however 0 is a valid
IRQ on at least some of the ARM architectures.
This patch changes the return code to be -ENOENT instead.
Signed-of-by: Ben Dooks <ben-linux@fluff.org>
[-- Attachment #2: plat-irq-fix.patch --]
[-- Type: text/plain, Size: 330 bytes --]
--- linux-2.6.9-bk4-orig/drivers/base/platform.c 2004-10-20 15:50:29.000000000 +0100
+++ linux-2.6.9-bk4/drivers/base/platform.c 2004-10-20 18:37:12.000000000 +0100
@@ -54,7 +54,7 @@
{
struct resource *r = platform_get_resource(dev, IORESOURCE_IRQ, num);
- return r ? r->start : 0;
+ return r ? r->start : -ENOENT;
}
/**
next reply other threads:[~2004-10-20 16:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-20 17:40 Ben Dooks [this message]
2004-10-22 10:10 ` Ben Dooks
2004-10-22 12:25 ` Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041020174015.GA13087@fluff.org \
--to=ben-linux@fluff.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome